且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

将Visual Studio 2003代码迁移到Visual Studio 2010

更新时间:2021-09-26 04:56:27

您对ASP .NET和C#的体验可能与我使用VB .NET和Windows Forms的体验不同。不过,我想让你知道我的经历非常好。我希望你的迁移像我一样简单。



今年早些时候,我将几个VB .NET Windows Forms桌面应用程序从Visual Studio 2003迁移到Visual Studio 2012.I在VS 2012中打开了VS 2003解决方案,它自动转换为VS 2012格式文件。之后,有一个.NET类(System.Dns.GetHostByName)被淘汰,导致我改变了少量代码。我修复了一些关于未初始化变量的警告。我不得不重新创建所有桌面SETUP.EXE项目,因为Microsoft取消了他们的安装和部署项目类型,而是与Flexera签订了允许免费下载InstallShield Limited Edition的协议。我最终只为其中两个项目使用InstallShield,并为所有其他项目使用Microsoft的ClickOnce。
Your experience with ASP .NET and C# may be different from my experience with VB .NET and Windows Forms. Nevertheless, I wanted to let you know that my experience was very good. I hope your migration goes as easy as mine.

Earlier this year, I migrated several VB .NET Windows Forms desktop applications from Visual Studio 2003 to Visual Studio 2012. I opened the VS 2003 Solution in VS 2012 and it was automatically converted to VS 2012 format files. Afterwards, there was one .NET Class (System.Dns.GetHostByName) that was obsoleted that caused me to change a small amount of code. There were a bunch of warnings about uninitialized variables that I fixed up. I had to recreate all of the desktop SETUP.EXE projects since Microsoft eliminated their Setup and Deployment Project type and instead entered an agreement with Flexera which allowed for free download of InstallShield Limited Edition. I ended up using InstallShield for only two of the projects and Microsoft's ClickOnce for all of the other projects.