简体   繁体   中英

Getting the project status from Msbuild & Using it in vs2010

I have a really big project and what i am trying to do is this:

Occasionally, i have to make few (minor) changes in a single class. Since this is a minor change, i really hate to open visual studio (ver 2010) and wait for all projects to load. Instead i open notepad, change that particular file use msbuild.exe to build the entire solution.

Now the question is,

  1. How to get the build status from msbuild.exe ? (i plan to write a nice gui or a web application from which after i invoke this msbuild.exe, i can get the build status, show to the user)

  2. Is this really a good idea to use msbuild.exe in vs2010 or vs2012? (I saw http://msdn.microsoft.com/en-us/library/ms171452(v=vs.90).aspx specify the supported version as Visual studio 2008. Though this is working in vs2010, is this the correct way of doing it?)

thanks in advance.

  1. Don't reinvent the wheel, use a build system that does everything you want (and more) for you. Look at Jenkins for example or TeamCity (see the image on the homepage of the latter: showing progress all over the place..)

  2. Definitely yes. Since VS2010 Visual studio itself uses msbuild to build your projects (since they are msbuild scripts as well). And in some upcoming version even the solution file will be an msbuild file.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM