Info
Version: | 1.0.1 |
Author(s): | Microsoft |
Last Update: | Monday, June 27, 2016 |
.NET Fiddle: | Online Example |
Project Url: | https://dot.net/ |
NuGet Url: | https://www.nuget.org/packages/Microsoft.NETCore.Portable.Compatibility |
Install
Install-Package Microsoft.NETCore.Portable.Compatibility
dotnet add package Microsoft.NETCore.Portable.Compatibility
paket add Microsoft.NETCore.Portable.Compatibility
Microsoft.NETCore.Portable.Compatibility Download (Unzip the "nupkg" after downloading)
Dependencies
.NETFramework 4.5
No dependencies.
- Microsoft.NETCore.Runtime.CoreCLR(>= 1.0.2)
- Microsoft.NETCore.Runtime.CoreCLR(>= 1.0.2)
No dependencies.
No dependencies.
No dependencies.
This package supports retargeting references to classic reference assemblies (mscorlib.dll, system.dll, etc) to new contract assemblies (System.Runtime.dll, System.IO, etc).
It does this in a pay-for-play way to prevent consuming assemblies from having to reference all of the contracts that happen to overlap with mscorlib. As such, when using this package you may encounter errors like
error CS0012: The type 'WebRequest' is defined in an assembly that is not referenced.
You must add a reference to assembly 'System.Net.Requests, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
To resolve these errors install the package with the same name name as the missing assembly.
TFS ID: 1612576, GitHub SHA: https://github.com/dotnet/corefx/tree/f47c814b003d17da52940739e227f04e52b10279
When using NuGet 3.x this package requires at least version 3.4.