CodeBetter.Com
CodeBetter.Com
RSS 2.0 via Feedburner
           Do you Twitter? Follow us @CodeBetter

Jeffrey Palermo [MVP]

Software management consultant and CTO, Headspring Systems

Running VS2008 & VS 2005 side by side - project file difference

Previously, I posted how to support developers running Visual Studio 2008 and Visual Studio 2005 on the same .Net 2.0 solution on the same team, built, CI server, etc.  The solution is to have 2 solution files.  These files have to be kept in sync to keep a healthy build process.

It is very important to keep the VS2005 solution the main solution and the solution used in the continuous build because VS2008 supports everything there, but if you add a project using VS2008, VS2005 might not recognize some things.  An example of this is with the path to the Microsoft.CSharp.targets file.

If you create a new project using VS2008, you'll see the following in the newly created project:

Note the $(MSBuildToolsPath) property.  This was added in .Net 3.5, and Visual Studio 2005 and MSBuild for .Net 2.0 doesn't understand this property.  Changing the project file to the following makes both versions of Visual Studio happy. (change it to $(MSBuildBinPath)



Comments

jankyBlog said:

La Solution in VS2005 e in VS2008

# November 28, 2007 9:31 AM

David said:

# November 29, 2007 2:57 PM

The running knowledgebase » Blog Archive » Running VS2008 & VS 2005 side by side - project file difference said:

Pingback from  The running knowledgebase  » Blog Archive   »  Running  VS2008 & VS 2005 side by side - project file difference

# December 21, 2007 11:29 PM

gunwant said:

Hi Jeffrey,

So , is there any option in vs 2008 by which we can change the property "MSBuildToolPath" to "MSBuildBinPath" , or we have change it by editing .csproj file.

This should work for both tae cases.

# February 27, 2008 4:36 AM

About Jeffrey Palermo

Jeffrey Palermo is a software management consultant and the CTO of Headspring Systems in Austin, TX. Jeffrey specializes in Agile coaching and helps companies double the productivity of software teams. Jeffrey is an MCSD.Net , Microsoft MVP, Certified Scrummaster, Austin .Net User Group leader, AgileAustin board member, INETA speaker, INETA Membership Mentor, Christian, husband, father, motorcyclist, Eagle Scout, U.S. Army Veteran, and Texas A&M University graduate. Check out Devlicio.us!

This Blog

Syndication