VS2010 build : error MSB6006: cmd.exe exited with code 1.

本文针对VS2010调试过程中遇到的Could not create output file及error MSB6006: 'cmd.exe' exited with code 1等错误进行了深入分析,并分享了解决方案,指出问题根源在于代码管理中个别临时文件的只读属性。

最近使用VS2010调试时发现一个问题 错误信息如下

....

1>  UIC AddComboxText.ui

1>  Could not create output file
1>  UIC TextChoose.ui
1>  Could not create output file
1>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB6006: "cmd.exe" exited with code 1.
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:03.76
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

网上搜了一下网页 居然很多都是一摸一样的错误  

转述最多的解决方法 :  工程路径中有中文字符 或者  build verbosity 选项设置的问题 

照着他们所述的方法却发现没有一个管用的 

后来解决了 原来是一个很弱智的错误 : 线索就在如上error MSB6006的前一句  Could not create output file

原来我的代码管理是受服务器控制的 提交时个别临时文件也提交了 造成了它的只读属性 所以......


另外VS2010调试时经常会有如下文件提示error出现 

C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets 

似乎是个VS2010提供的编译构建时需要的配置信息文件 具体内容含义不太清楚

有空研究下这个文件的具体含义  有知道的希望能及时提供信息或资料




11>GameletCSharpParam DefaultValue Metas.ubtplugin.csproj: Erreor NU1900 : Warning As Error: Error occurred while getting packagje vulnerability data: The process cannot access the file 'C:\Users\EDY AppData\Local\NuGet\v3-cache\670c1461c29885f9aa22c281d8b7da90845b38e4$ps_ai.nuget.org_v3_index.json\vuln_data_base.dat-new' because it is being useder process. (O:\GR_Trunk\S1Game\ Plugins\Pandora\GameletPuerts\Source\GameletCSharpParamDeffaultValueMetas\GameletCSharpParam DefaultValueMetas.ubtplugin.csproj) Failed to build: O:\GR_Trunk\S1Game\Plugins\Pandora\GameletPuerts\Source\GameletCSharpParamDefaultValueMetas\GameletCSharpParamDefaultValueMetasubtplugin.csproj Build.. 11>GameletCSharpParamDefault ValueMetas.ubtplugin.csproj: Error NU1900 : Warning As Error: Error occurred while getting package vulnerability ata: The process cannot access the file 'C:\'Users\EDY AppData\Local\NuGet\v3-cache\670c1461c29885f9aa22c281d8b7da90845b38e4$ps_api.nuget.org_v3_index.json\vuln_data_base.dat-new' because itis being used by another process. (O:\GR_Trunk\S1Game\ Plugins\Pandora\GameletPuerts\Source\GameletCSharpParamDefaultValuue Metas\GameletCSharpParam Default Value Metas.ubtplugin.csproj) 2025/11/18 Failed to build: O:\GR_Trunk\S1Game\Plugins\Pandora\GameletPuerts\Sorurce GameletCSharpParam DefaultValueMetas\GameletCSharpParamDefautValue Metas.ubtplugin.csproj Build projects time: 9.37 s Total execution time: 10.88 seconds Not all plugins compiled 11>Microsoft.Make File.Targets(44,5): Error MSB3073:命令"..\'Build\BatchFiles\Build.bat -Target="S1GameEditor Win64 Development -Project=\"O:\GR_Trunk\S1Game\ S1Game.uproject\'" -Target="ShaderCompileWorker Win64 Development-Project=\"O:\GR_Trunk\S1Game\S1Game.uproject\" -Quiet" - WaitMutex-FromMsBuild -architecture=x64"已退出,代码为6。 如何解决
最新发布
11-19
评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值