If I open up Command Prompt, and type msbuild, or /msbuild followed by a path file, It says that
'msbuild' is not recognized as an internal or external command, operable program or batch
file.
'
However, when I run the same lines in visual studios command prompt it works.. Anybody know why this is?
Here is my python script to run MSBuild through the command prompt
import subprocess
filename="C:\Users\bb\Documents\bb\Code\VisualStudio\tree.ProEAPI.UnitTests\tree.ProEAPI.UnitTests.vbproj"
p = subprocess.Popen(['C:\Windows\Microsoft.NET\Framework64\v4.0.30319\MSBuild.exe', filename], shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
for line in p.stdout.readlines():
print line,
retval = p.wait()