CustomBuild:拒绝访问。 error MSB6006: "cmd.exe" exited with code 1.
转自VC错误:http://www.vcerror.com/?p=1615
问题描述:

环境是VS2010+Qt4.8+WIN7 64位
程序出现过以下错误,发上来记录下
1>Build started 2015/5/8 17:04:04.
1>InitializeBuildStatus:
1> Touching "Release\Print3D.unsuccessfulbuild".
1>CustomBuild:
1> 拒绝访问。
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB6006: "cmd.exe" exited with code 1.
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB4018: The "CustomBuild" task failed unexpectedly.
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB4018: System.UnauthorizedAccessException: Access to the path 'C:\Users\QYT\AppData\Local\Temp\tmp1f3026b6a61442caafb35697e6416a0c.cmd' is denied.
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB4018: at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB4018: at System.IO.File.InternalDelete(String path, Boolean checkHost)
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB4018: at System.IO.File.Delete(String path)
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB4018: at Microsoft.Build.Utilities.ToolTask.Execute()
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB4018: at Microsoft.Build.CPPTasks.TrackedVCToolTask.Execute()
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB4018: at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB4018: at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__20.MoveNext()
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:00.36

解决方法:

具体的解决方法参考文章:http://www.vcerror.com/?p=1615
阅读更多
个人分类: 编译错误
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

不良信息举报

CustomBuild:拒绝访问。 error MSB6006: "cmd.exe" exited with code 1.

最多只允许输入30个字

加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!
关闭
关闭