迁移从.NET 1.1到.NET 3.5 [英] Migrating from .NET 1.1 to .NET 3.5

查看:199
本文介绍了迁移从.NET 1.1到.NET 3.5的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是一些令人信服的理由,从.NET 1.1的web应用程序升级到.NET 3.5?

解决方案

现在的问题不是是否应该, - 在功能方面并添加编译时检查;这几乎是一个给予走出1.1框架,并到2.0框架。现在的问题是,如何快速,你应该端口?将需要改变什么?

您的第一个步骤是将你的程序移植到.NET 2.0。原因是是,有大量的功能在.NET 2.0中并不存在之前,和previous特点是德precated。 (在ASP.NET中,有对pcated在2.0的特性去$ P $摆)。

.NET 2.0允许更强的类型安全,可空类型和变化的框架。 2.0重新presents(我会考虑)的.NET平台的第一个真正的释放。这是一个有力的竞争者,你会发现一些你在1.1用框架的东西已经在2.0修改。

这不是一个简单的端口code前进,并得到好处的情况。如果你想要的好处,你就必须重写一些code(最值得注意的是,事情涉及泛型);但即使在较大的NET框架,有这么多的'幕后的变化',你会想要将它移植增量:不要从1.1使直接跳到 - 3.5

1.1 - 2.0

有与.NET 2.0和.NET 3.0的变化摆。有一整个模式转变。 (但无可否认它是一个自愿的转变)。 维基百科有一个专门给它一个完整的部分,但我要的改变(一些!)这里:

.NET框架的变化

  • 的Windows presentation基金会(WPF)
  • 在Windows通讯基础(WCF)
  • 在Windows工作流基础
  • 的Windows CardSpace的

C#更改

  • LINQ
  • 对象Initalizers
  • 收藏Initalizers
  • 匿名类型
  • LAMBDA防爆pressions
  • 自动属性
  • 扩展方法 (资料来源:<一href="http://en.wikipedia.org/wiki/C_Sharp_(programming_language)#Features_of_C.23_3.0">Wikipedia)

更多来,效果显着。单从1.1跳到2.0值得一整个发行周期。

What would be some compelling reasons to upgrade a web app from .NET 1.1 to .NET 3.5?

解决方案

The question isn't 'whether you should',-- in terms of features and added compile-time checks; it's almost a given to get out of the 1.1 framework and into the 2.0 framework. The question is, how fast should you port? What would need to be changed?

Your first step would be to port your application to .NET 2.0. The reason is is that there are plenty of features in .NET 2.0 that didn't exist before, and previous features were deprecated. (In ASP.NET, there were a slew of features deprecated in 2.0).

.NET 2.0 allows for stronger type-safety, nullable types, and changes in the framework. 2.0 represents (what I would consider) the first 'real' release of the .NET platform. It is a serious contender, and you'll find that some of the framework stuff you use in 1.1 has been modified in 2.0.

It's not a simple 'port the code forward and get the benefits' scenario. If you want the benefits, you'll have to rewrite some code (most notably, things involving Generics); but even in the larger .NET framework, there are so many 'behind the scenes changes' that you'll want to port it incrementally: Don't make the jump directly from 1.1 - 3.5.

1.1 - 2.0

There are a slew of changes between .NET 2.0 and .NET 3.0. There was an entire paradigm shift. (Though admittedly it is a voluntary shift). Wikipedia has an entire section devoted to it, but I'll (some!) of the changes here:

.NET Framework changes

  • Windows Presentation Foundation (WPF)
  • Windows Communication Foundation (WCF)
  • Windows Workflow Foundation
  • Windows CardSpace

C# Changes:

  • LINQ
  • Object Initalizers
  • Collection Initalizers
  • Anonymous Types
  • Lambda Expressions
  • Automatic Properties
  • Extension Methods (Source: Wikipedia)

More to come, obviously. Just the jump from 1.1 to 2.0 is worth an entire release cycle.

这篇关于迁移从.NET 1.1到.NET 3.5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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