Skip to main content
.NETFramework4.5Windows8.0WindowsPhone8.0WindowsPhoneApp8.1.NETCore5.0DNXCore5.0

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.

Published
Sep 1, 2015
11y ago
Total Downloads
49.8M
49,784,840

Install

dotnet add package Microsoft.NETCore.Portable.Compatibility --version 1.0.1-beta-23225
ProductVersions
Other
.NETCore5.0.NETFramework4.5DNXCore5.0Windows8.0WindowsPhone8.0WindowsPhoneApp8.1

Changes from Previous Version

No structural changes between v1.0.0 and v1.0.1-beta-23225.

Adoption Assessment

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

This version is marked prerelease. Validate its API and upgrade path before production use.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.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.