我正在CI服务器上设置.NET 4.0支持。我已经安装了Windows4.0,以及Windows7.1SDK中的.NET工具。
在.NET 2.0和3.5上,这是可行的。在.NET 4中,当我从开始菜单运行"Windows SDK7.1命令提示符“时,它抱怨
The x86 compilers are not currently installed. x86-x86
Please go to Add/Remove Programs to update your installation.
.
Setting SDK environment relative to C:\Program Files\Microsoft
SDKs\Windows\v7.1
\.
Targeting Windows Server 2008 x86 Debug然后,当我尝试运行msbuild时,我得到:
C:\Program Files\Microsoft SDKs\Windows\v7.1>msbuild
'msbuild' is not recognized as an internal or external command,
operable program or batch file.
C:\Program Files\Microsoft SDKs\Windows\v7.1>我不敢相信安装运行时和SDK会让你的系统不能运行msbuild……我是否错过了一些明显的步骤或模糊的Windows Update,或者是时候放弃并开始修改系统路径了吗?
发布于 2018-01-14 23:52:10
使用"Developer Command Prompt for Visual Studio 20XX“代替"cmd”将自动设置msbuild的路径,而不必将其添加到环境变量中。
https://stackoverflow.com/questions/6319274
复制相似问题