.net - MSBuild 编译错误 "resgen.exe".Net FX 3.5 工具

标签 .net windows-7 frameworks msbuild winapi

我正在尝试在 Windows 7 x64 中编译 VS2012 制作的项目。

尝试在使用 MsBuild 4.0 安装了 Windows 7 x86 和 .Net Framework 4.0 的虚拟机中编译它,但我收到有关“resgen.exe”和 netfx 工具 3.5 的错误:

"C:\Users\Administrador\AppData\Local\Temp\Virtuosa Game Packer\Virtuosa Game P
acker.sln" (default target) (1) ->
"C:\Users\Administrador\AppData\Local\Temp\Virtuosa Game Packer\Extractor.vbpro
j" (default target) (2) ->
(CoreResGen target) ->
  C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(2291,5
): error MSB3091: Task failed because "resgen.exe" was not found, or the correc
t Microsoft Windows SDK is not installed. The task is looking for "resgen.exe"
in the "bin" subdirectory beneath the location specified in the InstallationFol
der value of the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft S
DKs\Windows\v7.0A\WinSDK-NetFx35Tools-x86. You may be able to solve the problem
 by doing one of the following:  1) Install the Microsoft Windows SDK.  2) Inst
all Visual Studio 2010.  3) Manually set the above registry key to the correct
location.  4) Pass the correct location into the "ToolPath" parameter of the ta
sk. [C:\Users\Administrador\AppData\Local\Temp\Virtuosa Game Packer\Extractor.v
bproj]

    5 Warning(s)
    1 Error(s)

我的问题是,Framework 需要什么条件才需要另一台机器来编译该项目?

如果我在该虚拟机中安装 NetFX Tools 3.5 那么我可以编译该项目吗?

哪里可以下载 NetFXTools 3.5 x86? (确实谷歌找不到)

最佳答案

另一个解决方案是仅安装 Windows SDK 中的 .net 开发工具。 使用Web安装程序取消选择所有,仅选择Dot net框架开发下的“工具”。

Windows sdk 的 Web 安装程序: http://www.microsoft.com/en-us/download/details.aspx?id=8279

关于.net - MSBuild 编译错误 "resgen.exe".Net FX 3.5 工具,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16516139/

相关文章:

objective-c - 没有 use_frameworks 就无法安装 Swift cocoapod!找不到 module-swift.h 文件

ios - undefined symbol : _OBJC_CLASS_$_FIRAnalytics

c# - 显示对话框时出现 "Thread was being aborted"异常

windows-7 - 在Windows 7上运行Postman时出现黑窗

windows - 为什么这个错误会一直扰乱 XE2 IDE 工具栏?

c - 如何以编程方式启动互联网连接?

javascript - 如何为具有相同布局的多个 Web 应用程序设计 UI 框架?

c# - 在接口(interface)中传递方法

.net - PHP var_dump 的 .NET 等价物是什么?

c# - "The subprocess making the call can not access this object because the owner is another thread"异常异步/等待 WPF C#