首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >MSBuild编译错误"resgen.exe“.Net FX 3.5工具

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

Stack Overflow用户
提问于 2013-05-13 14:38:29
回答 2查看 18.4K关注 0票数 5

我正在尝试在Windows7 x64中编译一个用VS2012制作的项目。

我试图在安装了Windows7 x86和.Net Framework4.0的虚拟机上编译它,但是我得到了关于"resgen.exe“和netfx tools3.5的错误:

代码语言:javascript
复制
"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?(我真的在谷歌上找不到它)

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2013-05-14 22:27:30

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

票数 2
EN

Stack Overflow用户

发布于 2014-03-07 18:04:52

另一个解决方案是只安装windows SDK中的.net开发工具。使用web安装程序取消全选,在Dot net框架开发下只选择"Tools“。

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

票数 7
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/16516139

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档