Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Downgrade C# Project from visual studio 2010 to visual studio 2008

I wrote a visual c# 2008 windows form application ,then i edited the code in a computer which had visual studio 2010,but i can no longer run it in visual 2008,is there a way i can do this?

like image 527
lajoo Avatar asked Apr 22 '10 04:04

lajoo


People also ask

What do you mean by downgrade?

Definition of downgrade (Entry 2 of 2) transitive verb. 1 : to lower in quality, value, status, or extent. 2 : minimize, depreciate.

What does it mean to downgrade debt?

A downgrade in a bond is an indication of an increased risk that the company or government borrowing money will be unable to repay its debts.

What is downgrade situation?

If something is downgraded, it is given less importance than it used to have or than you think it should have. The boy's condition has been downgraded from critical to serious. [ be VERB-ed] 2. verb.

What is a downgrade in driving?

What does a Downgrade sign mean? A Downgrade sign means that you are approaching a steep downward slope. Trucks and large vehicles should slow down and shift to a lower gear. The downgrade sign will sometimes include the angle.


2 Answers

When you say "can no longer run it"... what happens?

  • the sln files are not compatible; you'll need different sln files for each VS version
  • the csproj are mostly compatible, although you might see a "version 4 not recognised, using 3.5 instead" warning or two, which is usually fine
  • the cs is compatible as long as you don't use dynamic or the other new language features

In most cases you can get away with just having a separate sln for VS2010. So just rename it to "Whatever_2010.sln", get your old "Whatever.sln" back from your source repository, and rename it to "Whatever_2008.sln".

like image 143
Marc Gravell Avatar answered Nov 12 '22 07:11

Marc Gravell


http://stevedunns.blogspot.com/2010/02/tool-to-switch-project-files-between.html

like image 26
Raj Kaimal Avatar answered Nov 12 '22 06:11

Raj Kaimal