I am using Visual Studio 2003. Can I use MSBuild to automate my project's build process. Is MSBuild only available for and works with Visual Studio 2005. Is there a way to download and install MSBuild to try to use it with Visual Studio 2003 project.
Also, in VS2005 how to access MSBuild. I am getting this error.
D:\Profiles\neonet\My Documents\Visual Studio 2005\Projects\msbuildtest>MSBuild.
exe msbuildtest.proj
'MSBuild.exe' is not recognized as an internal or external command,
operable program or batch file.

MSBuild availability
TypeON
I think it's worth mentioning here too that the MSBuild Toolkit for .NET 1.1 has been released: http://www.gotdotnet.com/codegallery/codegallery.aspx id=9ac94da5-8e5a-4a33-beda-9b8d00970371
I don' tknow if you were trying to build a .NET 1.1 product or a .NET 2.0 product, but if it's the former, you will probably find that helpful. (I discovered this thanks to Neil's Blog entry - Thanks Neil!)
- Taylor
rano
Sure, you can do what you describe. As long as the directory that contains MSBuild is in the command window's path it will work fine.
Neil
SimonSa
Thomas Logan
The executable is put in C:\windows\microsoft.net\framework\v2.0.50727\msbuild.exe.
Neil
CleverHans
MSBuild does not work with Visual Studio 2003. You have to upgrade your projects to Visual Studio 2005 first.
You can obtain MSBuild for free as part of the .NET 2.0 redistributable.
The error your seeing is because msbuild is not in your path. Make sure you launch your command line by going to Programs > Microsoft Visual Studio 2005 > Visual Studio Tools > Visual Studio 2005 Command Prompt.
Neil
HolmesConan
great. that works. but is it possible to run it from any command prompt by setting the environment first. for example, to compile using csc from command line we can run vcvars32 to set environment.
i am actually interested in automating the build by setting a scheduled task. my guess is that i should be able to set environment to access msbuild path and then be able to call msbuild from a scheduled task. any tips on how to do this.