.NET Core 2.0及.NET Standard 2.0

.NET Core 2.0的發佈時間,.NET Core 2.0預覽版及.NET Standard 2.0 Preview大概在5月中旬或下旬發佈。git

.NET Core 2.0正式版本發佈時間大約在Q3 2017發佈,具體我估計大概在8月份左右。同時一塊兒發佈的也就是.NET Standard 2.0。github

Milestone Release Date
.NET Core 2.0 Preview Q2 2017
.NET Standard 2.0 Preview Q2 2017
.NET Core 2.0 Q3 2017
.NET Standard 2.0 Q3 2017

微軟計劃在5月10日將corefx 中標記爲2.0 的bug 徹底修復。使其順利發佈 .NET Core 2.0 Preview 和 .NET Standard 2.0 Preview 。app

如下爲具體連接: Announcement: Driving towards zero 2.0 bugs by 2017/5/10 (ZBB)  ZBB (zero bug bounce)。post

你們也能夠參與其中,貢獻本身的一份力量。學習

.NET Core 2.0版最低操做系統支持spa

 

OS Version Architectures Configurations Notes
Windows Client 7 SP1+ x64, x86    
Windows Server 2008 R2 SP1+ x64, x86 Full, Server Core, Nano  
Red Hat Enterprise Linux 7.3+ x64   This includes Centos and Oracle Linux
Fedora 25+ x64    
Debian 8.7+ x64    
Ubuntu 14.04+ x64, arm32 [C]   This includes Linux Mint 17 for x64
openSUSE 42.2+ x64    
Tizen                         4+                           arm32 [S]                 Tizen .NET Developer Preview
Mac OS X 10.12+ x64  

S 爲獲得三星支持操作系統

C 爲獲得社區支持.net

 

那麼.NET Core 2.0 及 .NET Standard 2.0 將會帶來哪些改變。orm

下降入門及學習的障礙,.NET Standard 2.0經過標準化共享API,能夠輕鬆地跨.NET Framework,.NET Core和Xamarin共享代碼。blog

.NET Framework 4.6.1支持.NET Standard 2.0

.NET Standard 2.0 添加了許多.NET Framework 4.6.1 支持的API,以及.NET Standard 2.0  本身特有的API

  • .NET Standard 2.0 添加了 14,994 個.NET Framework 4.6.1已經支持的API 
  • .NET Standard 2.0 只有 43 個 .NET Framework 4.6.1不支持的API

.NET Standard 2.0 將是.NET Standard 1.6的超集。 換句話說,.NET Standard 2.0和1.x不會發生突破性的變化。
.NET Framework 4.6.1將容許引用根據.NET Standard 2.0編譯的二進制文件。

最終能夠理解爲.NET Core 2.0 將是等價於 .NET Framework 4.6.1。

 

.NET Standard 2.0 工做正在進行中

Namespace #APIs
Microsoft.Win32.SafeHandles 32
System 1,087
System.CodeDom.Compiler 14
System.Collections 292
System.Collections.Generic 17
System.Collections.ObjectModel 1
System.Collections.Specialized 241
System.ComponentModel 1,499
System.ComponentModel.Design 520
System.ComponentModel.Design.Serialization 150
System.Configuration.Assemblies 13
System.Data 1,399
System.Data.Common 701
System.Data.SqlTypes 882
System.Diagnostics 772
System.Diagnostics.CodeAnalysis 2
System.Diagnostics.Contracts 89
System.Diagnostics.Contracts.Internal 3
System.Diagnostics.SymbolStore 144
System.Diagnostics.Tracing 2
System.Drawing 681
System.Dynamic 173
System.Globalization 188
System.IO 275
System.IO.IsolatedStorage 104
System.IO.MemoryMappedFiles 64
System.IO.Pipes 124
System.Linq 351
System.Linq.Expressions 41
System.Net 1,271
System.Net.Cache 50
System.Net.Mail 279
System.Net.Mime 69
System.Net.NetworkInformation 692
System.Net.Security 147
System.Net.Sockets 164
System.Net.WebSockets 165
System.Numerics 344
System.Reflection 348
System.Reflection.Emit 3
System.Resources 89
System.Runtime 12
System.Runtime.CompilerServices 164
System.Runtime.ConstrainedExecution 22
System.Runtime.ExceptionServices 6
System.Runtime.InteropServices 96
System.Runtime.InteropServices.ComTypes 15
System.Runtime.Remoting.Messaging 55
System.Runtime.Serialization 463
System.Runtime.Serialization.Formatters 13
System.Runtime.Serialization.Formatters.Binary 28
System.Runtime.Serialization.Json 64
System.Runtime.Versioning 33
System.Security 117
System.Security.Authentication 11
System.Security.Authentication.ExtendedProtection 40
System.Security.Claims 205
System.Security.Cryptography 684
System.Security.Cryptography.X509Certificates 67
System.Security.Permissions 87
System.Security.Principal 34
System.Text 56
System.Text.RegularExpressions 29
System.Threading 313
System.Threading.Tasks 66
System.Timers 36
System.Web 32
System.Xml 1,011
System.Xml.Linq 6
System.Xml.Resolvers 20
System.Xml.Schema 924
System.Xml.Serialization 935
System.Xml.XPath 244
System.Xml.Xsl 137

 

 

.NET Standard 版本對應

.NET Standard
1.0 1.1 1.2 1.3 1.4 1.5 1.6 2.0
.NET Core 1.0 1.0 1.0 1.0 1.0 1.0 1.0 2.0
.NET Framework 4.5 4.5 4.5.1 4.6 4.6.1 4.6.1 4.6.2 4.6.1 vNext 4.6.1
Mono 4.6 4.6 4.6 4.6 4.6 4.6 4.6 vNext
Xamarin.iOS 10.0 10.0 10.0 10.0 10.0 10.0 10.0 vNext
Xamarin.Android 7.0 7.0 7.0 7.0 7.0 7.0 7.0 vNext
Universal Windows Platform 10.0 10.0 10.0 10.0 10.0 vNext vNext vNext
Windows 8.0 8.0 8.1          
Windows Phone 8.1 8.1 8.1          
Windows Phone Silverlight 8.0            

 

.NET Standard

 

對於開發人員來講,這意味着他們只須要掌握一個基類庫。該庫面向.NET Standard 將可以在全部.NET平臺上運行。

.NET Standard 的核心使命在於解決 .NET 跨平臺時基礎連接庫不一致的問題。

 

參考文檔:

https://github.com/dotnet/core/blob/master/roadmap.md

https://github.com/dotnet/standard/tree/master/docs/netstandard-20

https://github.com/dotnet/standard/blob/master/docs/versions/netstandard2.0.md

https://blogs.msdn.microsoft.com/dotnet/2016/09/26/introducing-net-standard/

相關文章
相關標籤/搜索