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

╄→гoц情女王★ 提交于 2019-12-30 03:17:06

问题


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?


回答1:


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".




回答2:


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



来源:https://stackoverflow.com/questions/2688191/downgrade-c-sharp-project-from-visual-studio-2010-to-visual-studio-2008

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!