Jeffrey Palermo (.com)

Sponsors

The Lounge

Wicked Cool Jobs

News

Advertisement

Images in this post missing? We recently lost them in a site migration. We're working to restore these as you read this. Should you need an image in an emergency, please contact us at imagehelp@codebetter.com
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)


Posted Tue, Nov 27 2007 5:55 PM by Jeffrey Palermo

[Advertisement]

Comments

jankyBlog wrote La Solution in VS2005 e in VS2008
on Wed, Nov 28 2007 9:31 AM

La Solution in VS2005 e in VS2008

David wrote re: Running VS2008 & VS 2005 side by side - project file difference
on Thu, Nov 29 2007 2:57 PM
The running knowledgebase » Blog Archive » Running VS2008 & VS 2005 side by side - project file difference wrote The running knowledgebase » Blog Archive » Running VS2008 & VS 2005 side by side - project file difference
on Fri, Dec 21 2007 11:29 PM

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

gunwant wrote re: Running VS2008 & VS 2005 side by side - project file difference
on Wed, Feb 27 2008 4:36 AM

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.

Devlicio.us