简体   繁体   English

将.net 1.1转换为.net 2.0

[英]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 从.NET 1.1到.NET 2.0的迁移

Migrating from .NET 1.1 to 2.0, 3.0 and 3.5 从.NET 1.1迁移到2.0、3.0和3.5

Not every program can be converted from 1.1 to 2.0 without any change to its code. 并非所有程序都可以在不更改其代码的情况下从1.1转换为2.0。 You might get lucky on your project, though. 不过,您可能会对自己的项目感到幸运。

See the breaking changes between 1.1 and 2.0 . 请参阅1.1和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.0(我的解决方案中有10个项目)
  2. Update Nuget packages with latest version (some of the previous packages are not compatible with .net core 2.0) 使用最新版本更新Nuget软件包(某些以前的软件包与.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 您可以探索.net 2.0- https://youtu.be/Q2mMbjw6cLA

Just change the target framework to .NET Framework 2.0. 只需将目标框架更改为.NET Framework 2.0。

http://anyhub.net/file/30-04-2010-8-47-02-pm.png 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 您不需要更改任何代码,但是如果您这样做,它就不会太麻烦而无法修复

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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