Is there a built-in or custom MSBuild task that returns the current version of the OS? Is there any binary code that I could call through the Exec task? Or is there another option?
Edit: Peter Lang suggested the following link: http://www.paraesthesia.com/archive/2009/07/06/getting-the-windows-os-version-in-msbuild.aspx
You can try by searching the registry key as described in this post .
You can use this PowerShell line:
Get-WMIObject Win32_OperatingSystem | select Version
Source: https://habr.com/ru/post/1730908/More articles:Dynamically import the called, given the full path to the module? - pythonEnable Unicode "globally" in Python - pythonWhere in the domain model is it best to keep a link to the current user? - domain-driven-designGoogle Appengine: odd behavior get_by_key_name - google-app-engineSilverlight Pan Capture - silverlightWix - ComPlusAssembly - Не удалось установить библиотеку типов - wixIs it possible to use javascript to load a JSON object from another domain / server? - jsonLoadString, static library and executables - c ++request data from Sharepoint using Report Builder 2.0: missing fields - xmlReplace CheckBoxList TemplateControl with a custom UserControl? - asp.netAll Articles