Tuesday, December 23, 2008

Visual Studio 2005 build issue

Issue:
While trying to build a project in Visual Studio 2005, got the follwing output:

Embedding manifest...
Project : error PRJ0003 : Error spawning 'cmd.exe'.


Fix:
Change the MSVS 2005 options (Tools menu > Options > Project and Solutions > VC++ Directories) to ensure that
$(SystemRoot)
$(SystemRoot)\System32
$(SystemRoot)\System32\wbem
are specified BEFORE $(PATH)

If these are not already added, we need to manually add them in order and before $(PATH)

No comments: