【发布时间】:2013-01-21 19:10:07
【问题描述】:
移动构建服务器后,出现以下错误:
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>
我错过了什么?
【问题讨论】:
-
您是否在构建服务器上安装了 Visual Studio?
-
我假设这是一台服务器机器。如果是这样,您是否启用了应用程序角色以安装和使用 .net 3.5?
-
@dexter,你找到解决方案了吗?您可以将其发布为答案吗?
标签: visual-studio 64-bit configuration-files msbuild-4.0