| Bryan's profileBryan Hinton's spacePhotosBlogLists | Help |
|
9/16/2008 Programmatically setting multiple startup projects on a Visual Studio solutionA month or so ago I was waist deep in Visual Studio automation code trying to figure out how to create a solution programmatically with multiple startup projects. I searched and searched on the Internet, but could never find the answer. I knew that the code I was writing was very, very close, but it wasn't working. At the time I had to step away and work on other things that were more important, but today I was in and around that code and tried again. I found the answer on good old Google in less than 10 minutes - http://www.dotnetmonster.com/Uwe/Forum.aspx/vs-ext/1609/Editing-DTE2-Solution-SolutionBuild-StartupProjects . It is as simple as setting the StartupProjects property of the SolutionBuild object to an array of objects populated with the unique name of projects in the solution. I had been trying to set it to a string array of the same thing! Talk about close. Either way job accomplished. Our VS automation is now just a little more polished as a result. Note: I use this blog to post both Personal and Technical articles. For a technical only feed use the following URL (http://bryanandnoel.spaces.live.com/category/technology/feed.rss). For a family only feed use the following URL (http://bryanandnoel.spaces.live.com/category/family/feed.rss) Technorati Tags: Visual Studio,VSX Trackbacks (2)The trackback URL for this entry is: http://bryanandnoel.spaces.live.com/blog/cns!80E4A0EADF0C523C!1426.trak Weblogs that reference this entry
|
|
|