Running MSBuild scripts from Visual Studio
It seems like there more build script one writes, the more often one wants to run them and it’s always a bit annoying (and time consuming) having to leave Visual Studio and start MSBuild from the command line. Brennan Stehling has a cool solution to that problem here were he sets up MSBuild as an external tool and runs it.
One problem for us was the we had our solution files in one place on the file system and our build files in a totally different place. The solution was to add the build file for the current solution as a Solution Folder (as shown in the figure below) and then set MSBuild to use $(ItemDir) as its Initial Directory. That will kick of MSBuild from the directory that the current selected Solution Folder points to and in our case that’s were the XXX.Build.Article.proj file exists.
There's 2 Comments So Far
August 22nd, 2009 at 11:04 pm
Although I do not post on blogs usually, this post has a great attractive power for me to do so as the post is very good.
January 12th, 2012 at 7:19 pm
Hi
Can someone update Brennan’s UL link to his solution as the link seems to have moved.
Share your thoughts, leave a comment!