error PRJ0003 : 生成 cmd.exe 时出错

来源:互联网 发布:c语言default 编辑:程序博客网 时间:2024/04/30 12:17

 

   一直被一个问题所困扰,那就是运行CLR—Windows窗体应用程序的时候,即使什么代码也不写,直接编译运行也会报错:“error PRJ0003 : 生成 cmd.exe 时出错” 。

  一直在查找资料,看到是因为vs2005的环境变量设置不对,应该如下解决:

solution:

tools=> Options => Projects and Solutions -> VC++ Directories page

then place below rows:

$(SystemRoot)/System32
$(SystemRoot)
$(SystemRoot)/System32/wbem 

  但是我一直没有找到Projects and Solutions ,最后才发现原来是由于“工具”-〉“选项”里的“显示所有设置”没有勾选,只要勾上就会有“项目和解决方案”的选项,在该项目下添加

$(SystemRoot)/System32
$(SystemRoot)
$(SystemRoot)/System32/wbem 

就OK了。

原创粉丝点击