从2003年到2010年的项目转换(Vb.net) [英] Project Conversion 2003 to 2010 (Vb.net)

查看:71
本文介绍了从2003年到2010年的项目转换(Vb.net)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我的任务是将具有框架1.0的项目转换为框架4.0,即VS2010.因此,我只是在VS2010中打开了该项目,并通过转换向导将其自动转换为VS2010.另外,我已经设置了目标框架4.0,并且我的项目在VS2010中运行,没有任何错误.

现在,我担心的是Project是否真正转换为VS2010或仍支持框架1.0,因为在.net1.0中使用了datagrid,在4.0中使用了datagridview.我知道它具有向后兼容性,但想知道如何确认它已转换为VS2010.

等待您的建议.



在此先感谢.

Hi,

I have a task to convert project having framework 1.0 to framework 4.0 i,e VS2010. So I simply opened the project in VS2010 and through conversion wizard it gets automatically converted to VS2010. Also I have set Target framework 4.0 and my project is running in VS2010 with out any errors.

Now my concern is that Project gets really converted into VS2010 or it still supports framework 1.0 because in .net1.0 datagrid is used and in 4.0 datagridview is used. I know it is having backward compatibility but would like to know how to confirm that its been converted into VS2010.

Waiting for your suggestions.



Thanks in advance.

推荐答案

右键单击项目,然后选择属性.您将看到各种标签.在应用程序"选项卡中,将设置您的应用程序目标框架".在那里配置的是当前配置的框架.因此,支持向后兼容,因此应按原样工作.您对程序集的引用以正确版本将出现在Web.Config文件中.

最后但并非最不重要的一点是,运行应用程序和单元测试以查看一切是否正常.
Right click the project and select properties. You will see various tabs. In ''Application'' tab, your application ''Target Framework'' will be set. Whatever is configured there, is the current configured framework. As such, backward compatibility is supported so it should work as is. Your references to assemblies to correct version would be present in Web.Config file.

Last but not the least, Run the application and unit test to see if things are working fine.


如果您的项目在.net 4上编译并正常运行,那么您可以确定它正在使用.net 4的所有库.

为确保创建虚拟机并仅在其上安装.net4并运行您的应用程序.

要真正"使用.net 4功能,您可能必须对.net1.0中没有的通用,linq等新功能进行大量的重新设计和重构(不建议使用,因为如果有用"坏了,不要修复).
If your project compiles and works without errors on .net 4 then you can be sure that it is using all the libraries of .net 4.

To be sure create a virtual machine and only install .net4 on it and run your application.

To "really" use .net 4 features you would probably have to do a lot of redesign and refactoring for new features like generics, linq ,... which are not in .net1.0 (not advised because "if it ain''t broke, don''t fix it") .


这篇关于从2003年到2010年的项目转换(Vb.net)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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