When my client has started the project it was using Visual Studio 2008 on .net framework 2.0. Recently we started using vs 2010 and migrated vs 2008 solution to vs2010 but with a different branch and we even started developing new plugins in this new branch. We are quite happy with this new branch. Now we have two branches one is in vs2008 and other is in vs2010.
For some reasons, now we wanted to move some newly developed projects in vs2010 branch to vs2008. There is a support in vs2010 to upgrade solution/projects from vs2008 to vs2010 very easily, but not vice versa. This is achievable through vs2010 IDE. But there is no support to move projects from vs2010 to vs2008.
After a lot search I found a way to achieve this. Here are the steps to move projects from Visual Studio 2010 to Visual Studio 2008.
A) Solution (.sln) –
1) Open a solution (.sln) file in any text editor. File will look like –
Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SampleSolution", "SampleSolution\SampleSolution.csproj", "{C6FB9BD5-616E-4E1B-B623-73F78F893A36}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x86 = Debug|x86
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{C6FB9BD5-616E-4E1B-B623-73F78F893A36}.Debug|x86.ActiveCfg = Debug|x86
{C6FB9BD5-616E-4E1B-B623-73F78F893A36}.Debug|x86.Build.0 = Debug|x86
{C6FB9BD5-616E-4E1B-B623-73F78F893A36}.Release|x86.ActiveCfg = Release|x86
{C6FB9BD5-616E-4E1B-B623-73F78F893A36}.Release|x86.Build.0 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
2) Now, replace above highlighted lines with following lines -
Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2008
3) Save the solution. Now you can open it in vs2008.
B) Project Files (.csproj/.vbproj) –
1) Open your project file (.csproj/.vbproj) in any text editor.
2) Once opened, find out following line –
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3) And replace above line with following line –
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
That’s it. Now you can open your solution in 2008.
Do you know how to solve an error - "type of conditional expression can not be determined as 'byte' and 'int'? Click here to know how to solve.
Do you know how to solve an error - "type of conditional expression can not be determined as 'byte' and 'int'? Click here to know how to solve.
Sharing is Caring »»
|
|
|
Tweet |