Is there a (relatively) painless upgrade path from ASP.NET 1.1 to 3.5?

為{幸葍}努か 提交于 2019-12-06 04:32:16

问题


One of my clients has an e-commerce CMS written in VB.NET 1.1. (The original solution was authored with Visual Studio 2003.) It's not an enormous site, but it does consist of around 40 or 50 Web forms, and I'd like to upgrade it to .NET 3.5, and to maintain and continue developing it it with VS 2008.

I's sure I could do it surgically, re-creating the new project one file at a time, testing at each step of the way, and so on, but is there an easier way? I somewhat optimistically hoped VS 2008 would offer some sort of an upgrade wizard, but no such luck for Web Site projects, it looks like.

Anyone gone through this already? If so, what would you suggest as the most sensible approach?


回答1:


I've done both ways - recreating the project one file at a time and also just leaving it. It took way longer than I thought to recreate the project, I ended up spending about 5-10 minutes a page on a site with about 200 pages. If I had known it would take so long I would not have done it. Only if you are going to be actively maintaining the site rather than the occasional update would I recommend investing that time upfront. (Then again, if you are paid by the hour... hmm...)

In projects since then, I've let the wizard upgrade the solution to VS2008 (changes web.config, references and your project file a little bit) then I just left the ugly code the way it was.




回答2:


there are not magic buttons to do this. all applications need to be treated accordingly on how they were build. most of the time wizards make a good job but you need to execute a walkthrough code review in order to refactor and take advantage of the new Framework version.

wishing my customers also approve the framework upgrade to the applications. but most of the times they rather not to because of the time needed to accomplish it.



来源:https://stackoverflow.com/questions/477266/is-there-a-relatively-painless-upgrade-path-from-asp-net-1-1-to-3-5

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!