移动我的构建服务器后,我收到以下错误:C:\Windows\Microsoft.NET\Framework64\v3.5\Microsoft.Common.targets (1682): Could not run the "GenerateResource" task because MSBuild could not create or connect to a task host with runtime "CLR2" and architecture "x64". Please ensure that (1) the requested runtime and/or architecture are available on the machine, and (2) that the required executable "MSBuildTaskHost.exe" exists and can be run.
我的配置是这样说的:
<ConfigurationToBuild Include="Release|Any CPU">
<FlavorToBuild>Release</FlavorToBuild>
<PlatformToBuild>Any CPU</PlatformToBuild>
</ConfigurationToBuild>
我错过了什么?
最佳答案
就我而言,我在尝试在 32 位 Windows 7 机器上构建解决方案时收到了该错误消息。为我解决错误的方法是在 VS 中右键单击项目,选择属性,然后转到“构建”选项卡。在这里,我将“平台目标”从“任何 CPU”更改为“x86”。 HTH
关于visual-studio - 新构建服务器的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14445548/