visual-studio - 新构建服务器的问题

标签 visual-studio 64-bit configuration-files msbuild-4.0

移动我的构建服务器后,我收到以下错误:
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/

相关文章:

c++ - Visual C++ 和 gcc 之间从 std::isblank 返回的结果不一致。哪一个是错误的?

visual-studio-2010 - MSBuild 目标,BeforeCompile,在加载项目文件时触发

visual-studio - Visual Studio生成调试配置,但不发布配置

c++ - 缺少 Visual Studio 2010 Express 64 位属性

assembly - 为什么我不能将 64 位值 MOV 到 64 位寄存器?

php - php中的智能差异

c++ - 无法重载运算符,因为无法访问类中声明的私有(private)成员

.Net 4.0 应用程序在 64 位上比 32 位慢(分析和可能的解决方案)(应用程序使用 NetAdvantage)

asp.net - 什么是 appSettings 键有效字符?

json - 类似于 NodeJS 的 Typesafe Config