开发者

Planning to upgrade VS 2005 to VS 2010

I have installed VS 2010 and want to migrate all code written in VS 2005 to VS 2010.

Please note that we do not have VS 2008, all code are in C# 2.0 and Asp.net 2.0 only.

Can anyone please tell me now what all points need to be considered while migrating.

Update:

I have set target framework to 2.0 for all of my Libraries and web projects. It complies without any error!

However, when site opens in IE (Set to default.aspx), it giv开发者_StackOverflowes me error as below:

InternalXmlHelper.vb(9) : error BC30560: 'ExtensionAttribute' is ambiguous in the namespace 'System.Runtime.CompilerServices'.

<Global.System.Runtime.CompilerServices.ExtensionAttribute()> _


  1. Keep all the target framework settings to .NET 2.0. This way, there should be no compilation problem at all.
  2. The changes that you should see are the solution and project files only.


  1. Start with known good solutions in source control (and label—you shouldn't need to go back, but easy to add an extra safety net).
  2. Open each solution in VS2010, allow the conversion wizard to do the conversion.
  3. Resolve any issues.


Honestly, if you're just upgrading VS 2010 you don't really need to consider much. Just keep backups (any real SCM product will do) and you're good. You don't have to upgrade your applications' runtime targets at all if you don't want to.

If you're building with CAS policy, you might run into issues with using MSBuild 4.0 to build you 2.0 applications. If you don't know what I'm talking about, never mind.

My advice is to make sure everyone's "checked in" to your source code provider, and run the conversion wizard and see how it goes.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜