From a library targeting .NET Standard you’ll be able to reference two kinds of other libraries:
The following improvements are included in .NET Core 2.0 Preview 1:
- Massive API increase (>100%) relative to .NET Core 1.x.
- Support for .NET Standard 2.0.
- Support for referencing .NET Framework libraries and NuGet packages.
- Support for Visual Basic.
以上大意是:
.NET Core 2.0 Preview预览版包括四点改进:
- 相对于Core1.1增加大量api
- 支持.NET Standard2.0
- 支持引用.NET Framework和NuGet的包
- 支持VB语言
.NET Standard 2.0
.NET Standard allows sharing code, binaries and skills across all flavors of .NET, including .NET Framework, .NET Core, Xamarin, Unity, and UWP(以上大意是开发的.net Standard2.0类库可以在微软旗下任意平台引用,例如在Framework和Xamarin和Unity或者UWP项目下都可以引用同一个.NET Standard类库)
Here is what’s new with .NET Standard 2.0:
- Has a much bigger API surface. It’s extended to cover the intersection between
.NET Framework and Xamarin. This also makes .NET Core 2.0 much bigger as it
implements .NET Standard 2.0. The total number of APIs added to .NET Standard
is ~20,000.
- Can reference existing .NET Framework libraries. The best thing is:
no recompile required, so this includes existing NuGet packages. Of course,
this will only work if the consumed libraries use APIs that exist in .NET
Standard. However, our extensive API surface results in 70% of all NuGet
packages to be API compatible with .NET Standard 2.0.
(以上大意是 .NET Standard 2.0两个新功能:
- 支持更多的api
- 可以引用现有.NET Framework,前提是.NET Framework使用了在.NET Standard 存在的Api才有效)
Visual Studio 2017 Improvements
Visual Studio 2017 continues to use .NET Core 1.x by default.You need to install the .NET Core SDK 2.0 Preview 1 to get .NET Core 2.0 support.(以上大意是VS17默认情况下继续使用Core1.X 的版本,除非你安装2.0预览版得到2.0支持。.NET Core2.0预览版下载地址
https://www.microsoft.com/net/core/preview#windowscmd)