Skip to main content
Microsoft.NETCore.Portable.Compatibility package icon

Microsoft.NETCore.Portable.Compatibility

Enables compatiblity with portable libraries targeting previous .NET releases like .NET Framework 4.0 and Silverlight. 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: 1615845, GitHub SHA: https://github.com/dotnet/corefx/tree/4ed15a98d1c957ae661d490ccfcfe77f4ed31d5a When using NuGet 3.x this package requires at least version 3.4.

Total Downloads
48.3M
48,308,270
Published
Jan 1, 1900
Latest stable version

Install

.NET CLI
dotnet add package Microsoft.NETCore.Portable.Compatibility --version 1.0.2
Package Manager Console
Install-Package Microsoft.NETCore.Portable.Compatibility -Version 1.0.2
PackageReference
<PackageReference Include="Microsoft.NETCore.Portable.Compatibility" Version="1.0.2" />

Frameworks

.NETFramework4.5 .NETCore5.0 .NETStandard1.0 Windows8.0 WindowsPhone8.0 WindowsPhoneApp8.1

Dependencies

[1.0.2, )

Adoption guide

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

No SPDX license expression is published. Review the license text and your organisation's policy before redistribution.

Compatibility metadata lists 6 target frameworks; confirm the exact target used by your application.

This version is unlisted. Prefer a listed release unless you deliberately need this exact version for reproducibility.

How to read this guidance

Sources: published NuGet v3 registry metadata and explicit NuBrowse editorial guides. Refresh: package metadata is refreshed from NuGet when the page loads. Limit: this is not a security, legal or compatibility guarantee; validate the selected version in your project.

Useful next steps

Move from package metadata to a concrete selection or review workflow.