Tim Huffam

Dotting the I and crossing the T of I.T.

  Home  |   Contact  |   Syndication    |   Login
  129 Posts | 0 Stories | 874 Comments | 677 Trackbacks

News

Archives

Post Categories

Interesting Blogs/Links

There is a known problem with MSBuild whereby it does not cater for database project types as these project types (database projects) are not buildable.  This is only an issue when specifying a solution file (as the item to build) within the MSBuild script.
Because these are not buildable projects VS does not show them in the solution configuration manager.  Unfortunately this means they cannot be manually configured not to build (as a work around to this problem). 
When using solution files within MSBuild, it does not allow you to exclude specific projects.  There are a few options to work around this - as mentioned in this article:  http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=640825&SiteID=1
Another simple solution is to just remove the database project from the solution - and if you really want it still within the solution - just create another project of type class library and just reuse the original project's files.  By using another project type (like class library) you can use the configuration manager to explicitly flag this project not to build (remember to update each configuration).
This issue affects TFS continuous integration builds.
 
posted on Tuesday, May 27, 2008 6:20 PM

Feedback

# re: MSBuild fails when building solutions with database projects 5/28/2008 6:53 AM Chris Eargle
I prefer to put my projects in an ItemGroup in the build script. That way I can exclude problem projects like Database projects, and I can build groups of projects together. This is important when any kind of code generation needs to take place.

Post Feedback

Title:
Name:
Email: (never displayed)
Url:
Comments: 
Please add 8 and 4 and type the answer here: