I need to create a batch file that run MSBuild.exe
I assumed that I could just call MSBuild, but when I do it does know that program.
MSBuild.exe lives in “C:\Windows\Microsoft.NET\Framework64\v4.0.30319”. But I would rather not hard code that value.
Is there an environment variable in Windows 7 that will point to that location?
If you look at the shortcut installed with visual studio 2010 that opens up the command prompt for Visual Studio x64 Cross Tools Command Prompt (2010) you will see:
You should be able use that directly and then start MSBuild without issue without knowing the exact location.