Visual Studio中的项目构建错误 [英] Project build error in Visual Studio

查看:229
本文介绍了Visual Studio中的项目构建错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



环境:C ++ / CLI - VS2005

$ b $

在创建项目时遇到以下错误b

编辑:错误消息是项目:错误PRJ0003:错误产生'resgen.exe'。
奇怪的是,它编译其他项目具有相同的配置,没有任何问题!我在互联网上搜索,它看起来像是由VS2010和VS2005坐在一起在同一台机器上造成的。也就是说重新安装VS2005可以解决这个问题。



之前有人遇到过这个问题吗?

解决方案

只是有同样的问题,并修复它:resgen.exe驻留在

p>

  C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin 

然而该目录不在VS的路径,只有v7.1 SDK dir在那里,该版本似乎没有resgen 。



只需在Tools-> Options-> Projects and Solutions-> VC ++ Directories-> Executable Files下添加上述目录,肯定的事情不会搞乱。我的配置现在看起来像这样:

  .... 
$(WindowsSdkDir)\bin
....
C:\Program Files \Microsoft SDKs\Windows \v6.0A\Bin


I am getting the following error when building my project and have no idea what it means.

Environment: C++/CLI - VS2005

EDIT: Error message is "Project : error PRJ0003 : Error spawning 'resgen.exe'." The weird thing is that it compiles other projects with the same configuration without any problems! I searched over the internet and it looks like it is caused by having VS2010 and VS2005 sitting together on the same machine. It is also said that reinstalling VS2005 fixes the problem.

Has any of you encountered this problem before? If yes, how did you fix it?

解决方案

Just had the same problem and fixed it: resgen.exe resides in

C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin

however that directory was not in VS' path, only the v7.1 SDK dir was there and that version does not seem to have resgen.

Fixed simply by adding the above directory under `Tools->Options->Projects and Solutions->VC++ Directories->Executable Files', after the 7.1 dir to make sure things do not get messed up. My config looks like this now:

....
$(WindowsSdkDir)\bin
....
C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin

这篇关于Visual Studio中的项目构建错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆