在.NET Core RC2项目的project.json中,多了2个新东西:
{ "frameworks": { "netcoreapp1.0": { } }, "dependencies": { "Microsoft.NETCore.App": { "type": "platform", "version": "1.0.0-rc2-3002702" } } }
在frameworks中多了netcoreapp1.0,dependencies中多了Microsoft.NETCore.App,请问这2个东东的用途是什么?
netcoreapp是 .netcore的别名,就像原来的dnxcore50 。Microsoft.NETCore.App 是一些包的集合,包含.netcore的基础运行时和基础类库。
.NET Platform Standard version mapping
| .NET Platform Standard version | NuGet identifier |
|---|---|
| 1.0 - 1.5 | netstandard1.0 - netstandard1.5 |
Specific platform mapping
| Platform | NuGet identifier |
|---|---|
| .NET Framework 2.0 - 4.6 | net20 - net46 |
| .NET Core | netcoreapp |
| .NET Micro Framework | netmf |
| Windows 8 | win8, netcore45 |
| Windows 8.1 | win8, netcore451 |
| Windows Phone Silverlight (8, 8.1) | wp8, wp81 |
| Windows Phone 8.1 | wpa8.1 |
| Universal Windows Platform 10 | uap10, netcore50 |
| Silverlight 4, 5 | sl4, sl5 |
| MonoAndroid | monoandroid |
| MonoTouch | monotouch |
| MonoMac | monomac |
| Xamarin iOS | xamarinios |
| Xamarin PlayStation 3 | xamarinpsthree |
| Xamarin PlayStation 4 | xamarinpsfour |
| Xamarin PlayStation Vita | xamarinpsvita |
| Xamarin Watch OS | xamarinwatchos |
| Xamarin TV OS | xamarintvos |
| Xamarin Xbox 360 | xamarinxboxthreesixty |
| Xamarin Xbox One | xamarinxboxone |
| Platform | NuGet identifier |
|---|---|
| ASP.NET 5.0 on .NET Framework | aspnet50 |
| ASP.NET 5.0 on .NET Core | aspnetcore50 |
| DNX on .NET Framework 4.5.1 - 4.6 | dnx451 - dnx46 |
| DNX on .NET Core 5.0 | dnxcore50 |
| Windows 8 | winrt |