VS2010 MSBuild Troubleshooting vc++ x64

 

As the new feature of VS2010 to build also the VC++ projects with MSBuild and even using multiple build sets , ex VS2008 or 2010, I just migrate some of prev. working items to it.i use vs2010 premium on win7 x64 ultimate,

and have fun – first Try  MFC UI application – compiled ok, till resource when resource compiler breaks with

1>—— Build started: Project: popconnect10, Configuration: Debug x64 ——
1>TRACKER : error TRK0002: Failed to execute command: "E:\SDKs\Windows\v7.0A\bin\x64\rc.exe /D _DEBUG /D _UNICODE /D UNICODE /D _AFXDLL /l0x0409 /Ix64\Debug\ /nologo /fox64\Debug\test10.res test10.rc". The handle is invalid.
1> 

I already use it with /resetuserconfig parameter and to don’t import the old settings, no change. I try to hardcode the platform sdk path in .target config of msbuild , no difference, is using the correct path.

hmm, go to next try

i just create clean new project with my VS2010 , i create an new build configuration x64, and try to build. surprise 🙂

TRACKER : error TRK0002: Failed to execute command: "E:\SDKs\Windows\v7.0A\bin\x64\midl.exe /D _DEBUG /W1 /nologo /char signed /env win32 /Oicf /h OutlookExtension_i.h /iid OutlookExtension_i.c /proxy OutlookExtension_p.c /tlb x64\Debug\OutlookExtension.tlb OutlookExtension.idl". The handle is invalid.

and the x86 configuration was built as expected. –

excutable dir for x86 – $(VSInstallDir)\SDK\v2.0\bin;…    excutable dir for x64 : $(WindowsSdkDir)\bin\x64;…

Solution is : change the path of the VC++Directory from : $(WindowsSdkDir)\bin\x64 to $(WindowsSdkDir)\bin

But seems that the problem still exist , check the MSDN forum threads on

http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/745abeae-89bd-49ec-b80c-441f8ee09d5f

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.