热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

C#,.NETFramework,VisualStudio和CLR之间的关系

原文地址:点击打开链接1.版本整合:2..NETFramework版本差异版本发行的功能及其特点

原文地址:点击打开链接

1.版本整合:

image

 

2..NET Framework 版本差异

版本

发行的功能及其特点           

1.0

First Version of CLR and Base Class Library(CLR的第一个版本及其基础类库)

1.1

1. First Major version of .NET Framework(.net框架的第一个主版本) 
2. Built-in support for mobile ASP.NET controls. Previously available as an add-on for .NET Framework, now part of the framework(增加内建支持asp.net的mobile控件)

3. Security changes – enable Windows Forms assemblies to execute in a semi-trusted manner from the Internet, and enable Code Access Security in ASP.NET applications 
(启用asp.net代码访问安全) 
4. Built-in support for ODBC and Oracle databases. Previously available as an add-on for .NET Framework 1.0, now part of the framework

(增加内建支持ODBC和Oracle的数据库)

5. .NET Compact Framework – a version of the .NET Framework for small devices 
6. Internet Protocol version 6 (IPv6) support

2.0

1. Generics (泛型) 
2. Language support for generics built directly into the .NET CLR 
3. Full 64-bit support for both the x64 and the IA-64 hardware platforms (64位支持) 
4. SQL Server integration – .NET 2.0, VS 2005, and SQL Server 2005 are all tied together. This means that instead of using T-SQL, one can build stored procedures and triggers in any of the .NET-compatible languages 
5. A new hosting API for native applications wishing to host an instance of the .NET runtime. The new API gives a fine grain control on the behavior of the runtime with regards to multithreading, memory allocation, assembly loading and more 
6. Many additional and improved ASP.NET web controls 
7. New data controls with declarative data binding 
8. New personalization features for ASP.NET, such as support for themes, skins, master pages and webparts 
9. .NET Micro Framework – a version of the .NET Framework related to the Smart Personal Objects Technology initiative 
10. Membership provider(成员提供) 
11. Partial classes(部分类) 
12. Nullable types(可空类型) 
13. Anonymous methods(匿名方法) 
14. Iterators(迭代器) 
15. Data tables

3.0

1. Windows Presentation Foundation (WPF), a new user interface subsystem and API based on XML and vector graphics, which uses 3D computer graphics hardware and Direct3D technologies 
2. Windows Communication Foundation (WCF), a service-oriented messaging system which allows programs to interoperate locally or remotely similar to web services 
3. Windows Workflow Foundation (WF) allows for building of task automation and integrated transactions using workflows 
4. Windows CardSpace, a software component which securely stores a person’s digital identities and provides a unified interface for choosing the identity for a particular transaction, such as logging in to a website

3.5

1. Added new features such as AJAX-enabled Web sites and LINQ 
2. The SP1 update added 
2.1. .NET Framework Client Profile 
2.2. Dynamic Data 
2.3. Two new data service components added, ADO.NET Entity Framework and ADO.NET Data Services 
2.4. Two new assemblies for web development, System.Web.Abstraction and System.Web.Routing 
2.5. New set of controls “Visual Basic Power Packs” introduced

4.0

1. New Version of CLR 
2. Parallel Extensions to improve support for parallel computing, which target multi-core or distributed systems. To this end, technologies like PLINQ (Parallel LINQ), a parallel implementation of the LINQ engine, and Task Parallel Library, which exposes parallel constructs via method calls are included 
3. New Visual Basic .NET and C# language features, such as implicit line continuations, dynamic dispatch, named parameters, and optional parameters 
4. Code Contracts 
5. Inclusion of new types to work with arbitrary-precision arithmetic (System.Numerics.BigInteger) and complex numbers (System.Numerics.Complex) 
6. Dynamic Language Runtime (DLR) 
7. Managed Extensibility Framework (MEF) 
8. Windows Server AppFabric for application server capabilities in the form of AppFabric hosting and in-memory distributed caching support

4.5

1..NET for Metro style Apps 
2.Portable Class Libraries 
3.Better performance through background garbage collection for servers. When you use server garbage collection in the .NET Framework 4.5 RC, background garbage collection is automatically enable 
4.Background just-in-time (JIT) compilation, 
5.Asynchronous methods 
6.Caller info attributes 
7.Web Socket 
8.ASP.NET:Support for new HTML5 form types 
....

 

3. C#语言版本差异:

  • C# 1.0; released with .NET 1.0 and VS2002 (January 2002)
  • C# 1.2 (bizarrely enough); released with .NET 1.1 and VS2003 (April 2003). First version to call Dispose on IEnumerators which implemented IDisposable. A few other small features.
  • C# 2.0; released with .NET 2.0 and VS2005 (November 2005). Major new features: generics, anonymous methods, nullable types, iterator blocks,Private setters (properties),Method group conversions (delegates),Partial types and methods
  • C# 3.0; released with .NET 3.5 and VS2008 (November 2007). Major new features: lambda expressions, extension methods, expression trees, anonymous types, implicit typing (var), query expressions, object and collection initializers, automatic properties.
  • C# 4.0; released with .NET 4 and VS2010 (April 2010). Major new features: late binding (dynamic), delegate and interface generic variance, more COM support, named arguments and optional parameters
  • C# 5.0; released with .NET 4.5 and VS2012 (February 2012). Major features: async programming, Windows Runtimesupport,caller info attributes. 
  • Future: Compiler-as-a-service("Roslyn")

4. 快速记忆:

   .NET 2.0 = CLR + BCL + C#(VB.NET) +Win Form+ Web Form.

   .NET 3.0 = .NET 2.0 + WCF + WPF + WF + WCS

   .NET 3.5 = .NET 3.0 +ASP.NET AJAX + Silverlight + LINQ + ADO.NET Entity Framework and Data Services

   .NET 4.0 = .NET 3.5 + PLINQ  and Task Parallel + DLR + Background GC

    .NET 4.5  =  .NET 4.0 + .NET for Metro +  Async + Background JIT + Web Sockets

5. 图解:

Image[20]

Image(1)[5]

 

Image(2)[4]

 

 

6.检查CLR版本:

   System.Runtime.InteropServices.RuntimeEnvironment.GetSystemVersion()
7.注意:
  • .NET Framework 1.0、1.1 、 2.0和4.0 版是彼此完全独立的
  • 当 1.0、1.1 、 2.0和4.0 版位于同一台计算机上时,每个版本都有自己的公共语言运行库、类库和编译器,
  • .NET Framework 提供高度的向后兼容性支持,只有对于 1.1 版,.NET Framework 还支持向前兼容性
  • 使用 2.0 版创建的应用程序将不在 .NET Framework 的早期版本上运行

8.C#语言规范:

Microsoft specifications

  • C# 4.0 (2010; Word document; also available as HTML)
  • C# 3.0 (unified, 2007; Word document)
  • C# 2.0 (September 2005; Word document)
  • C# 1.2 (2003; Word document)
  • C# 1.0 (2002; Word document)
ECMA specifications
  • Latest contents: - Fourth edition (June 2006; PDF)
  • Archives of old editions:
    • Third edition (June 2005; PDF)
    • Second edition (December 2002; PDF)
    • First edition (December 2001; PDF)
Annotated specifications

Both the ECMA and Microsoft teams have produced annotated specifications, with interesting comments from the design team and some members of the community. I can thoroughly recommend them as providing extra insight. (Disclaimer: I contributed annotations to the ECMA C# 2 and Microsoft C# 4 specs.)

  • Microsoft (C# 4) (due out in November 2010)
  • Microsoft (C# 3)
  • ECMA (C# 2)

 

 

参考资料:

.NET Framework version history and C Sharp (program language)

http://en.wikipedia.org/wiki/.NET_Framework_version_history

http://en.wikipedia.org/w/index.php?title=C_Sharp_(programming_language)

http://en.wikipedia.org/wiki/List_of_.NET_Framework_versions

.NET Version

http://csharpindepth.com/articles/chapter1/versions.aspx

http://stackoverflow.com/questions/247621/what-are-the-correct-version-numbers-for-c

http://blogs.msdn.com/b/johnwpowell/archive/2008/03/16/c-and-net-framework-features-by-version-quick-reference.aspx

http://stackoverflow.com/questions/212896/how-do-the-net-framework-clr-and-visual-studio-version-numbers-relate-to-each

http://www.cnblogs.com/skyivben/archive/2007/10/13/923267.html

http://www.cnblogs.com/skyivben/archive/2009/12/13/1622806.html

http://www.soaspx.com/dotnet/asp.net/Advance/advance_20100418_3853.html

.NET 4.5 New features

.NET Versioning and Multi-Targeting - .NET 4.5 is an in-place upgrade to .NET 4.0

http://www.hanselman.com/blog/NETVersioningAndMultiTargetingNET45IsAnInplaceUpgradeToNET40.aspx

What's New in the .NET Framework 4.5 RC

http://msdn.microsoft.com/zh-cn/library/ms171868(v=vs.110)

 

 

资料收集:

  1. 微软推出下一代互联网构想
  2. 如何判断 .NET Compact Framework 的版本
  3. .NET 3.5的版本问题
  4. HOWTO: Determining the .NET Compact Framework Version
  5. What .NET Framework version numbers go with what service pack
  6. Sample code to detect .NET Framework 1.0 and 1.1 and service packs
  7. Microsoft .NET Framework Redistributable 1.0 - 简体中文
  8. Deploying Microsoft .NET Framework Version 3.0
  9. Update Deployment for Visual Studio and the .NET Framework
  10. Understanding User-Agent Strings
  11. (Download) Microsoft Visual Studio 2010 Service Pack 1 (Installer)
  12. (KB318785) 如何确定安装了哪些版本的 .NET Framework 以及是否应用了 Service Pack
  13. (KB818380) How to obtain the latest .NET Framework 1.0 service pack
  14. (KB318836) 如何获取最新的 .NET Framework 1.0 Service Pack
  15. (KB885055) 如何获取 Microsoft .NET Framework 1.1 Service Pack 1
  16. (KB915756) How to install and update the .NET Framework 1.1 on different operating systems
  17. (KB928367) 2007 年 7 月 10 日版用于 Windows Vista、Windows Server 2003、Windows XP 和 Windows 2000 的 .NET Framework 1.0 Service Pack 3 (SP3) 安全更新说明
  18. (KB928366) 2007 年 7 月 10 日版用于 Windows XP 和 Windows 2000 的 .NET Framework 1.1 Service Pack 1 (SP1) 安全更新说明
  19. (KB928365) 2007 年 7 月 10 日版用于 Windows Server 2003、Windows XP 和 Windows 2000 的 .NET Framework 2.0 安全更新说明
  20. (KB932471) FIX: Error message when you try to open or to create a protected XPS document by using the XPS viewer that is included with the .NET Framework 3.0: "Cannot open this document because your permissions have expired"
  21. (KB2468871) Update for Microsoft .NET Framework 4
  22. (2002-02-13) Microsoft Launches XML Web Services Revolution With Visual Studio .NET and .NET Framework
  23. (2003-04-24) Microsoft Windows Server 2003 Is Available Worldwide Today
  24. (2004-07-03) Download Visual Studio Whidbey Express Versions Now!!
  25. (2005-04-18) Visual Studio 2005 and .NET Framework 2.0 beta 2 now available
  26. (2005-10-27) Final official version of .NET Framework 2.0 is available for download!
  27. (2006-11-07) The final version of the .NET Framework 3.0 is now available for download
  28. (2007-01-30) Microsoft Launches Windows Vista and Microsoft Office 2007 to Consumers Worldwide
  29. (2007-04-19) Visual Studio "Orcas" and .NET FX 3.5 Beta1 shipped!
  30. (2007-07-26) Announcing the release of Visual Studio 2008 Beta 2, .NET FX 3.5 Beta 2, and Silverlight 1.0 RC
  31. (2007-11-19) Visual Studio 2008 and .NET Framework 3.5 shipped!
  32. (2008-08-11) Service Pack 1 for VS 2008 and .NET FX 3.5 released!
  33. (2010-04-12) Announcing availability of Visual Studio 2010 and .NET Framework 4
  34. (2011-03-08) Announcing Visual Studio 2010 Service Pack 1

推荐阅读
  • 解决VS写C#项目导入MySQL数据源报错“You have a usable connection already”问题的正确方法
    本文介绍了在VS写C#项目导入MySQL数据源时出现报错“You have a usable connection already”的问题,并给出了正确的解决方法。详细描述了问题的出现情况和报错信息,并提供了解决该问题的步骤和注意事项。 ... [详细]
  • 本文介绍了C#中生成随机数的三种方法,并分析了其中存在的问题。首先介绍了使用Random类生成随机数的默认方法,但在高并发情况下可能会出现重复的情况。接着通过循环生成了一系列随机数,进一步突显了这个问题。文章指出,随机数生成在任何编程语言中都是必备的功能,但Random类生成的随机数并不可靠。最后,提出了需要寻找其他可靠的随机数生成方法的建议。 ... [详细]
  • 本文介绍了lua语言中闭包的特性及其在模式匹配、日期处理、编译和模块化等方面的应用。lua中的闭包是严格遵循词法定界的第一类值,函数可以作为变量自由传递,也可以作为参数传递给其他函数。这些特性使得lua语言具有极大的灵活性,为程序开发带来了便利。 ... [详细]
  • 本文介绍了C#中数据集DataSet对象的使用及相关方法详解,包括DataSet对象的概述、与数据关系对象的互联、Rows集合和Columns集合的组成,以及DataSet对象常用的方法之一——Merge方法的使用。通过本文的阅读,读者可以了解到DataSet对象在C#中的重要性和使用方法。 ... [详细]
  • 知识图谱——机器大脑中的知识库
    本文介绍了知识图谱在机器大脑中的应用,以及搜索引擎在知识图谱方面的发展。以谷歌知识图谱为例,说明了知识图谱的智能化特点。通过搜索引擎用户可以获取更加智能化的答案,如搜索关键词"Marie Curie",会得到居里夫人的详细信息以及与之相关的历史人物。知识图谱的出现引起了搜索引擎行业的变革,不仅美国的微软必应,中国的百度、搜狗等搜索引擎公司也纷纷推出了自己的知识图谱。 ... [详细]
  • 本文介绍了Oracle数据库中tnsnames.ora文件的作用和配置方法。tnsnames.ora文件在数据库启动过程中会被读取,用于解析LOCAL_LISTENER,并且与侦听无关。文章还提供了配置LOCAL_LISTENER和1522端口的示例,并展示了listener.ora文件的内容。 ... [详细]
  • 本文介绍了在Mac上搭建php环境后无法使用localhost连接mysql的问题,并通过将localhost替换为127.0.0.1或本机IP解决了该问题。文章解释了localhost和127.0.0.1的区别,指出了使用socket方式连接导致连接失败的原因。此外,还提供了相关链接供读者深入了解。 ... [详细]
  • 导出功能protectedvoidbtnExport(objectsender,EventArgse){用来打开下载窗口stringfileName中 ... [详细]
  • WhenIusepythontoapplythepymysqlmoduletoaddafieldtoatableinthemysqldatabase,itdo ... [详细]
  • Oracle优化新常态的五大禁止及其性能隐患
    本文介绍了Oracle优化新常态中的五大禁止措施,包括禁止外键、禁止视图、禁止触发器、禁止存储过程和禁止JOB,并分析了这些禁止措施可能带来的性能隐患。文章还讨论了这些禁止措施在C/S架构和B/S架构中的不同应用情况,并提出了解决方案。 ... [详细]
  • 本文主要复习了数据库的一些知识点,包括环境变量设置、表之间的引用关系等。同时介绍了一些常用的数据库命令及其使用方法,如创建数据库、查看已存在的数据库、切换数据库、创建表等操作。通过本文的学习,可以加深对数据库的理解和应用能力。 ... [详细]
  • MySQL语句大全:创建、授权、查询、修改等【MySQL】的使用方法详解
    本文详细介绍了MySQL语句的使用方法,包括创建用户、授权、查询、修改等操作。通过连接MySQL数据库,可以使用命令创建用户,并指定该用户在哪个主机上可以登录。同时,还可以设置用户的登录密码。通过本文,您可以全面了解MySQL语句的使用方法。 ... [详细]
  • 本文是关于C#类型系统、值类型和引用类型的概念性笔记。介绍了C#1系统类型的三个特性,静态类型的含义,显式类型和隐式类型的区别。还讨论了类、结构、数组类型、枚举、委托类型和接口类型属于哪一种类型。同时纠正了关于结构、引用类型和对象传递的错误表述。最后提到了C#4中使用动态类型的关键字。 ... [详细]
  • 本文介绍了如何在Azure应用服务实例上获取.NetCore 3.0+的支持。作者分享了自己在将代码升级为使用.NET Core 3.0时遇到的问题,并提供了解决方法。文章还介绍了在部署过程中使用Kudu构建的方法,并指出了可能出现的错误。此外,还介绍了开发者应用服务计划和免费产品应用服务计划在不同地区的运行情况。最后,文章指出了当前的.NET SDK不支持目标为.NET Core 3.0的问题,并提供了解决方案。 ... [详细]
  • 在C#中,使用关键字abstract来定义抽象类和抽象方法。抽象类是一种不能被实例化的类,它只提供部分实现,但可以被其他类继承并创建实例。抽象类可以用于类、方法、属性、索引器和事件。在一个类声明中使用abstract表示该类倾向于作为其他类的基类成员被标识为抽象,或者被包含在一个抽象类中,必须由其派生类实现。本文介绍了C#中抽象类和抽象方法的基础知识,并提供了一个示例代码。 ... [详细]
author-avatar
hareleemu_699
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有