Is there a way to programmatically build Visual Studio solutions? E.g. if you are inside a console app, can you programmatically build an existing solution elsewhere?
+3
A:
Sure- MSBuild is included on any machine with .NET 2.0 or better installed. Just call it and pass the solution file, or drive the MSBuild classes (see Microsoft.Build.BuildEngine.Engine) from your code to do it.
nitzmahone
2009-10-02 18:54:50
or better yet, use CC.NET and have it continuously build your solution for you using msbuild.
Lucas B
2009-10-02 19:04:31