.Net Project Target框架以编程方式升级 [英] .Net Project Target framework Upgrade programmatically

查看:79
本文介绍了.Net Project Target框架以编程方式升级的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有超过100个项目(1.1,2.0 .net框架)需要升级到4.0 / 4.5 .net框架。



当我们改变时任何项目的目标框架从2.0到4.0,然后visual studio升级。* proj和.config文件。但是没有对任何代码文件进行任何更改。



我想创建一个可重用的实用程序,可以用来扫描一组pre的源代码文件 - 定义的功能(例如,一些旧的控件,过时的类等);然后在较新的.net框架中使用其兼容的功能/版本更新代码文件。



任何想法?

We have more than 100 projects (in 1.1, 2.0 .net framework) which needs to be upgraded to 4.0/4.5 .net framework.

When we change the target framework of any project from 2.0 to 4.0, then the visual studio upgrades the .*proj and .config file. But no changes are made to any code file.

I want to create a re-usable utility which can be used to scan the source code files for a set of pre-defined features (ex, some old controls, obsolete classes etc); and then update the code files with its compatible feature/version in newer .net framework.

Any ideas?

推荐答案

代码不会改变。您的项目将转换为使用4.0。

如果您想使用4.0或4.5的功能,您仍然需要自己实现这些功能。
Code wont change. Your project will be converted to work with 4.0.
If you want to use features of 4.0 or 4.5, you will still need to implement these on your own.


这篇关于.Net Project Target框架以编程方式升级的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆