是否有返回当前操作系统版本的 native 或自定义 MSBuild 任务可用?有没有我可以通过 Exec 任务调用的二进制文件?或者有其他选择吗?
编辑: Peter Lang 建议使用以下链接: http://www.paraesthesia.com/archive/2009/07/06/getting-the-windows-os-version-in-msbuild.aspx
最佳答案
您可以尝试使用 this post 中描述的注册表项查找.
关于windows - 如何确定 MSBuild 中的当前操作系统版本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2179316/