msbuild is not recognized as internal or external command
-
Tuesday, April 13, 2010 1:28 PM
Hi
I was using the msbuild command in Visual Studio 2008 command prompt succesfuly, now stop working and I cannot find the reason.
when I run the command I get the message: 'msbuild' is not recognized as internal or external command, operable command or batch file.
I've checked in C:\Windows\Microsoft.NET\Framework\v2.0.50727 looking for MSBuild.exe and it is in there!
:(
All Replies
-
Tuesday, April 13, 2010 1:57 PMModerator
Are you sure you are running a VS2008 prompt?
At a VS2008 prompt you should be able to type the following
c:\Program Files\Microsoft Visual Studio 9.0\VC>where msbuild
and get
c:\WINDOWS\Microsoft.NET\Framework\v3.5\MSBuild.exe
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\MSBuild.exe
if you instead get this:
c:\Program Files\Microsoft Visual Studio 9.0\VC>where msbuild
INFO: Could not find files for the given pattern(s).
then you have a problem.
Have you just installed some new software? You could try re-install the .net framework.
Mike
Visual Studio ALM MVP
My Blog | MSBuild Extension Pack | MSBuild Explorer- Proposed As Answer by Chuck England - MSFTMicrosoft Employee Wednesday, April 14, 2010 12:52 AM
- Marked As Answer by Chao KuoModerator Tuesday, April 20, 2010 2:14 AM
-
Monday, April 26, 2010 2:03 PM
Yes, I have to specify fullpath where msbuild.exe is, My problem is that I can't use the msbuild shortcut command. I will reinstall my .Net Framework 3.5 .
thanks

