简体   繁体   中英

Converting .net 1.1 to .net 2.0

如何在不更改代码的情况下将.net 1.1转换为.net 2.0?

I think there might be scenario where code changes are required and may be not. It all depend on your code base. For a start point you can check following links:

.NET 1.1 to .NET 2.0 Migration

Migrating from .NET 1.1 to 2.0, 3.0 and 3.5

Not every program can be converted from 1.1 to 2.0 without any change to its code. You might get lucky on your project, though.

See the breaking changes between 1.1 and 2.0 .

I followed below steps and work for me

  1. Change Target framework version 2.0 (I had 10 proj. in my solution)
  2. Update Nuget packages with latest version (some of the previous packages are not compatible with .net core 2.0)
  3. Build your solution, I got some error because some of the methods are obsolete. eg 在此处输入图片说明
  4. If you will get similar error you need to check suggested link and need to fix.

That's it. :)

You can explore .net 2.0 - https://youtu.be/Q2mMbjw6cLA

Just change the target framework to .NET Framework 2.0.

http://anyhub.net/file/30-04-2010-8-47-02-pm.png

You shouldn't need to change any code, but if you do, it shouldn't be too drastic to fix

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