VB.NET项目升级VS2005到VS2008
我有一个使用 VS2005 免费版开发的 VB.NET 2.0 项目,我正在考虑将其升级到 VS2008 FE,主要是因为我每年都会遇到一次问题,每当我的临时证书过期。
我想知道您是否可以指出一些资源来描述升级后我应该注意代码的哪些部分。我的项目仅使用两个外部组件(zipforge 和 objectlistview),我没有使用任何数据库,以防这些信息对您的答案有任何用处。
I have a VB.NET 2.0 project developed using VS2005 Free Edition and I am considering to upgrade it to VS2008 FE, mainly because I have problems once per year, whenever my Temporary Certificate expires.
I was wondering if you can point to some resources describing in what parts of the code I should pay attention after the upgrade. My project uses only two external components (zipforge and objectlistview) and I am not using any databases, in case this information is of any use to your answers.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试在VS2008中打开你的项目,向导会询问你是否要转换你的项目,你点击是,然后点-创建备份,并显示转换后的日志。
最后向导将向您显示转换结果。如果发生任何错误,您将能够清楚地看到它的位置。
那么您是否想将项目升级到 .NET 3.5 版本将取决于您,但如果不升级 - 很好,VS 2008 也有 .NET 2.0 支持。
Try to open your project in VS2008, the wizard will ask you whether you want to convert your project, you hit yes, then point - to create backup, and show log after conversion.
At the end wizard will show you conversion results. If any error will occur, you'll be able to clearly see its location.
then it will be up to you if you want to upgrade project to .NET 3.5 version, but if no - fine, VS 2008 has .NET 2.0 support as well.
如果升级到 2008 后您想继续使用 .NET 2.0 框架,请单击“解决方案资源管理器”中的“我的项目”,选择“编译”选项卡、“高级编译选项”按钮、“目标框架”下拉框。如果您不这样做,项目将默认使用最新的框架 3.5,如果您无意中开始仅使用 3.5 的功能并且您的目标 PC 未安装 3.5,则在部署升级的 exe 时可能会出现问题。在开始更改源代码之前更改此选项可以防止您使用仅限 3.5 的功能。
If you want to stick with the .NET 2.0 framework once you upgrade to 2008, click on My Project in the Solution Explorer, select the Compile tab, Advanced Complile Options button, Target Framework drop down box. If you don't do this, the project defaults to using the latest framework, 3.5, which could cause problems when you deploy upgraded exes if you inadvertantly start using 3.5 only features and your target PCs don't have 3.5 installed. Changing this option before you start making changes to your source prevents you using 3.5 only features.