.net MSBuild编译错误“;resgen.exe"。NETFX3.5工具

.net MSBuild编译错误“;resgen.exe"。NETFX3.5工具,.net,windows-7,frameworks,msbuild,winapi,.net,Windows 7,Frameworks,Msbuild,Winapi,我正在尝试在Windows7x64中编译一个VS2012制作的项目 尝试在使用MsBuild 4.0安装了Windows 7 x86和.Net framework 4.0的virtualmachine中编译它,但在“resgen.exe”和netfx tools 3.5中出现以下错误: "C:\Users\Administrador\AppData\Local\Temp\Virtuosa Game Packer\Virtuosa Game P acker.sln" (default target

我正在尝试在Windows7x64中编译一个VS2012制作的项目

尝试在使用MsBuild 4.0安装了Windows 7 x86和.Net framework 4.0的virtualmachine中编译它,但在“resgen.exe”和netfx tools 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)
我的问题是,框架的哪些必要条件需要另一台机器来编译项目

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


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

正如错误消息所述,您可以将resgen从计算机复制到vm上的somwhere,并更改注册表以指向正确的路径。

另一个解决方案是只从windows SDK安装.net开发工具。 使用web安装程序取消选择所有,只选择“工具”下的.net框架开发

windows sdk的Web安装程序:

您在哪里找到它?您可以在主机上Windows SDK的安装目录中找到ResGen.exe(例如C:\Program Files(x86)\Microsoft SDK\Windows\v7.0A\Bin)。你可以把这个复制到你的虚拟机上。我也有同样的问题。我刚刚下载并安装了适用于Windows 7和.NET Framework 4的Microsoft Windows SDK(从下面的链接),最新SDK的bin文件夹(C:\Program Files\Microsoft SDK\Windows\v7.1\bin)肯定不包含resgen.exe,我可以在任何其他地方找到它?@wonko79你所说的
VM
是什么意思?VM=“虚拟机”