c++ - Building via MSBuild fails when run as System User -


we using visual studio 2012 build our c++ application if run commandline in source folder:

c:\windows\microsoft.net\framework\v4.0.30319\msbuild.exe /p:configuration=release /p:platform=win32 myproject2012.sln 

it works fine. if it's run via buildscript of buildserver (atlassian bamboo) lot of errors. first 2 lines..

c:\program files (x86)\msbuild\microsoft.cpp\v4.0\v110\microsoft.cppcommon.targets(347,5): error msb4018: "cl" task failed unexpectedly. [c:\data\bamboo-home\xml-data\build-dir\xxx-imb-job1\xxx\common\common.vcxproj]  c:\program files (x86)\msbuild\microsoft.cpp\v4.0\v110\microsoft.cppcommon.targets(347,5): error msb4018: system.typeinitializationexception: type initializer 'microsoft.build.utilities.filetracker' threw exception. ---> system.io.directorynotfoundexception: das system kann den angegebenen pfad nicht finden. (exception hresult: 0x80070003) [c:\data\bamboo-home\xml-data\build-dir\xxx-imb-job1\xxx\common\common.vcxproj] 

what can reason behaviour?

you can run build outside of bamboo system if use sysinternals psexec.

psexec -i -s cmd.exe 

then try c:\windows\microsoft.net\framework\v4.0.30319\msbuild.exe /p:configuration=release /p:platform=win32 myproject2012.sln

then create shell have elevated permissions , retry. should see if permissions thing or path thing. ive tried building c++ system , seems pk. or this: msbuild msb4018 error


Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -