Click here to Skip to main content
15,890,506 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello everyone,

I am trying to build a plugin project using VS 2010 & Visual studio 2013 in Win7.


I am getting the following error after the build fails (release or debug mode, same result)

Error MSB6006: "cmd.exe" exited with code 5 - File: Microsoft.CppCommon.targets

<CustomBuild  <---- Error occurs here
      Sources                     ="@(CustomBuild)"
      BuildSuffix                 ="$(BuildSuffix)"

      TrackerLogDirectory         ="%(CustomBuild.TrackerLogDirectory)"
      MinimalRebuildFromTracking  ="%(CustomBuild.MinimalRebuildFromTracking)"

      TLogReadFiles               ="@(CustomBuildTLogReadFiles)"
      TLogWriteFiles              ="@(CustomBuildTLogWriteFiles)"
      TrackFileAccess             ="$(TrackFileAccess)"
      ToolArchitecture            ="$(CustomBuildToolArchitecture)"
      TrackerFrameworkPath        ="$(CustomBuildTrackerFrameworkPath)"
      TrackerSdkPath              ="$(CustomBuildTrackerSdkPath)"

      AcceptableNonZeroExitCodes  ="%(CustomBuild.AcceptableNonZeroExitCodes)"
      >
</CustomBuild>


Build Log:
Build started 6/22/2015 6:04:53 AM.
     1>Project "C:\HelloTrunk\HelloID\SampleProject\HelloID(UI)_CC.vcxproj" on node 2 (rebuild target(s)).
     1>_PrepareForClean:
         Deleting file "C:\HelloTrunk\HelloID\SampleProject\.\Build\HelloID(UI)_WinCSCC\ReleaseCC_Obj\HelloID(UI).lastbuildstate".
       InitializeBuildStatus:
         Touching "C:\HelloTrunk\HelloID\SampleProject\.\Build\HelloID(UI)_WinCSCC\ReleaseCC_Obj\HelloID(UI).unsuccessfulbuild".
       CustomBuild:
         Performing Custom Build Tools
         Access is denied.
     1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB6006: "cmd.exe" exited with code 5.
     1>Done Building Project "C:\HelloTrunk\HelloID\SampleProject\HelloID(UI)_CC.vcxproj" (rebuild target(s)) -- FAILED.

Build FAILED.


Last week, this project was building (debug/Release) correctly but from yesterday it is throwing such error.


Any help would be appreciated !

Thanks in advance.
Posted
Updated 21-Jun-15 22:41pm
v2
Comments
Richard MacCutchan 22-Jun-15 4:42am    
Message just before the end says "Access is denied.". So something in your custom build section is wrong.
AbhishekDotNet 22-Jun-15 6:32am    
Thanks Richard. but nothing change in Custom Build from Last week to this week. I am wondering why I am getting this error. Is there any way to find detailed log? error is showing in File: Microsoft.CppCommon.targets. I also tried to compile same project on different machine and everything is fine.
Richard MacCutchan 22-Jun-15 9:33am    
The message is telling you that some file or directory is giving "Access denied" error, so you just need to find which one and correct it.

1 solution

Not figured out why my project is not accessing SDK folder but deleting it and using a new one resolve this issue.
Thanks Richard for your help
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900