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

Ele*_*ios 5 .net msbuild winapi frameworks windows-7

我试图在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)
Run Code Online (Sandbox Code Playgroud)

我的问题是关于Framework的必备条件是否需要另一台机器来编译项目?

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

哪里可以下载NetFXTools 3.5 x86?(真的我在谷歌找不到它)

小智 7

另一种解决方案是仅从Windows SDK安装.net开发工具.使用Web安装程序取消全选,在Dot net framework development下仅选择"工具".

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


小智 2

正如错误消息所述,您可以将 resgen 从计算机复制到虚拟机上的某个位置,然后更改注册表以指向正确的路径。

  • 您可以在主机上 Windows SDK 的安装目录中找到 ResGen.exe(例如 C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin)。您可以将其复制到您的虚拟机。 (2认同)