简体   繁体   中英

Moving from Visual Studio 2005 to 2008 and .NET 2.0

I'm currently using VS2005 Profesional and .NET 2.0, and since our project is rather large (25 projects in the solution), I'd like to try VS 2008, since its theoretically faster with larger projects.

Before doing such thing, i'd like to know if what I've read is true: can I use VS2008 in ".net 2.0" mode? I don't want my customers to install .net 3.0 or .3.5, I just want to install VS2008, open my solution and start working from there.

Is this possible?

PD: the solution is ac# Window Forms project.

Yes it's possible. In the project properties you can target different versions of the .Net Framework going back to .NET 2.0.

Upgrading to VS 2008 will upgrade your Solution file and you won't be able to go back to VS 2005 unless you have backed up your solution

是的,vs2008可以“ 定位 ”一个框架,但我认为默认情况下,如果从vs2005转换 - vs2008它只是保​​持在框架2.0

It is possible to have a 2.0 project in VS 2008. You would just target .NET Framework 2.0 under the project properties.

Your solution will have to be converted to a VS9 solution however.

Yes you can run 2.0 with VS2008. Be sure to select that when you convert, however. When converting a project, I mistakenly left in the ASP.NET 3.5 conversion, and then all new files contained references to Linq, so it was a little bit of a pain to switch back to 2.0 when I realized the mistake.

I had absolutely no problems switching to VS2008. :) Multi-targeting worked without a hitch.

Yes, the feature that enables this is Visual Studio 2008 is called multi-targeting. See this link for more information. To use it you simply open the Properties for your Project, and select the Target Framework you want from the drop-down list on that page.

请记住,关于2005和2008之间兼容项目的所有这些内容对于C / C ++项目来说都是不正确的。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM