简体   繁体   English

如何迁移.NET Framework应用程序? [3.5至2.0]

[英]How to migrate a .NET Framework application? [3.5 to 2.0]

I am trying to make a migration of an application ( windows forms ). 我正在尝试迁移应用程序( Windows窗体 )。
Its framework is 3.5 but I want to convert it into framework 2.0 . 它的框架是3.5,但我想将其转换为框架2.0

It occurred to me to create a new application ( with framework 2.0 ) and then copy the code respectively, but there are too many "forms" and the idea is to save time. 我想到创建一个新应用程序( 使用Framework 2.0 ),然后分别复制代码,但是“表单”太多了,其目的是节省时间。

Does anyone know of any method to migrate the application to a previous framework than the current one? 有谁知道将应用程序迁移到当前框架以外的任何方法的方法吗?

I hope you can help me. 我希望你能帮助我。 Thanks. 谢谢。

Open up the Properties for the project, and on the Application tab set the target framework to whatever you want. 打开项目的属性,然后在“应用程序”选项卡上将目标框架设置为所需的任何对象。 This is from VS2017, but it should look similar in VS2010: 这来自VS2017,但在VS2010中看起来应该类似:

在此处输入图片说明

After that, you'll still have to go through and fix code that won't compile under the older framework. 之后,您仍然必须仔细检查并修复在旧框架下无法编译的代码。

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

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