Downgrade a VS 2008 .sln or .csproj to VS 2005

by Tobias Hertkorn on February 15th, 2008

I just had to convert a Visual Studio 2008 Solution and Project to Visual Studio 2005, because we had to exchange sources with somebody who did not use VS 2008 yet.

Even though Microsoft (of course Downgrade a VS 2008 .sln or .csproj to VS 2005(转) ) did not provide a wizard or automated tool for it, converting the solution is possible to do, if you know what you are doing. It is actually pretty straight forward. At least in my case... I really can't tell if it is always that easy.

All I had to do in the .sln file:
change

PLAIN TEXT
XML:

Downgrade a VS 2008 .sln or .csproj to VS 2005(转)Microsoft Visual Studio Solution File, Format Version 10.00 

to

PLAIN TEXT
XML:

Downgrade a VS 2008 .sln or .csproj to VS 2005(转)Microsoft Visual Studio Solution File, Format Version 9.00 

 

The .csproj is more complicated (showing changes as diff):

PLAIN TEXT
XML:
Downgrade a VS 2008 .sln or .csproj to VS 2005(转)+++ C:/vsone/source/SoundEx.the/SoundEx.the/SoundEx.the.csproj.2005 
Downgrade a VS 2008 .sln or .csproj to VS 2005(转)--- C:/vsone/source/SoundEx.the/SoundEx.the/SoundEx.the.csproj.2008
Downgrade a VS 2008 .sln or .csproj to VS 2005(转)@@ -1,14 +1,17 @@
Downgrade a VS 2008 .sln or .csproj to VS 2005(转)+
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
Downgrade a VS 2008 .sln or .csproj to VS 2005(转)-
<?xml version="1.0" encoding="utf-8"?>
Downgrade a VS 2008 .sln or .csproj to VS 2005(转)-
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
Downgrade a VS 2008 .sln or .csproj to VS 2005(转)   
<PropertyGroup>
Downgrade a VS 2008 .sln or .csproj to VS 2005(转)     
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
Downgrade a VS 2008 .sln or .csproj to VS 2005(转)     
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
Downgrade a VS 2008 .sln or .csproj to VS 2005(转)+    
<ProductVersion>8.0.50727</ProductVersion>
Downgrade a VS 2008 .sln or .csproj to VS 2005(转)-    
<ProductVersion>9.0.21022</ProductVersion>
Downgrade a VS 2008 .sln or .csproj to VS 2005(转)     
<SchemaVersion>2.0</SchemaVersion>
Downgrade a VS 2008 .sln or .csproj to VS 2005(转)     
<ProjectGuid>{94E2C393-2BE5-411C-BAFF-892F2C049E06}</ProjectGuid>
Downgrade a VS 2008 .sln or .csproj to VS 2005(转)     
<OutputType>Library</OutputType>
Downgrade a VS 2008 .sln or .csproj to VS 2005(转)     
<AppDesignerFolder>Properties</AppDesignerFolder>
Downgrade a VS 2008 .sln or .csproj to VS 2005(转)     
<RootNamespace>SoundEx.the</RootNamespace>
Downgrade a VS 2008 .sln or .csproj to VS 2005(转)     
<AssemblyName>SoundEx.the</AssemblyName>   
Downgrade a VS 2008 .sln or .csproj to VS 2005(转)-    
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
Downgrade a VS 2008 .sln or .csproj to VS 2005(转)-    
<FileAlignment>512</FileAlignment>
Downgrade a VS 2008 .sln or .csproj to VS 2005(转)   
</PropertyGroup>
Downgrade a VS 2008 .sln or .csproj to VS 2005(转)   
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
Downgrade a VS 2008 .sln or .csproj to VS 2005(转)     
<DebugSymbols>true</DebugSymbols>
Downgrade a VS 2008 .sln or .csproj to VS 2005(转)@@ -44,7 +47,7 @@
Downgrade a VS 2008 .sln or .csproj to VS 2005(转)     
<Compile Include="Properties\AssemblyInfo.cs" />
Downgrade a VS 2008 .sln or .csproj to VS 2005(转)     
<Compile Include="SoundexSystem.cs" />
Downgrade a VS 2008 .sln or .csproj to VS 2005(转)   
</ItemGroup>
Downgrade a VS 2008 .sln or .csproj to VS 2005(转)+  
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
Downgrade a VS 2008 .sln or .csproj to VS 2005(转)-  
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
Downgrade a VS 2008 .sln or .csproj to VS 2005(转)   
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
Downgrade a VS 2008 .sln or .csproj to VS 2005(转)        Other similar extension points exist, see Microsoft.Common.targets.
Downgrade a VS 2008 .sln or .csproj to VS 2005(转)   <Target Name="BeforeBuild"> 


The "-" at the start of a line means remove from 2008 version and a "+" means add to 2005 version. For more explanation see Diff Section "unified format".

Hope this helps in case you need to do the same.

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-11
  • 2022-12-23
  • 2021-08-07
  • 2022-12-23
  • 2022-12-23
  • 2021-11-02
猜你喜欢
  • 2022-01-01
  • 2021-07-04
  • 2021-12-23
  • 2021-12-05
相关资源
相似解决方案