Tuesday, November 15, 2011

msbuild 4.0 without VS2010

Probably just trivia, but I was trying to run the new msbuild script on a computer with VS2010 or 4.0 SDK (however it did have 4.0 framework installed).

vbc comes back with an error it can't find ResGen.exe and a very verbose hint as to why involving registry settings and ToolPath setting among other things...none of which turn out to be of any help.

It turns out the solution was to set SDK40ToolsPath="existing 2.0 tools path"

e.g.:

C:\Projects\OAMSIMULATOR>C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\msbuild proj.vbproj /p:SDK40ToolsPath="C:\PROGRA~1\MID05A~1\SDK\v2.0\bin"

No comments:

Post a Comment