Chasm.Compatibility 2.4.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package Chasm.Compatibility --version 2.4.1                
NuGet\Install-Package Chasm.Compatibility -Version 2.4.1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Chasm.Compatibility" Version="2.4.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Chasm.Compatibility --version 2.4.1                
#r "nuget: Chasm.Compatibility, 2.4.1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Chasm.Compatibility as a Cake Addin
#addin nuget:?package=Chasm.Compatibility&version=2.4.1

// Install Chasm.Compatibility as a Cake Tool
#tool nuget:?package=Chasm.Compatibility&version=2.4.1                

Chasm.Compatibility

Latest NuGet version MIT License

Provides a bunch of compatibility stuff, polyfills and shims.

[!CAUTION] If you're developing your own package, make sure you're targeting the same framework versions as this package!
Otherwise, your users may end up with ambiguous type reference errors!

For example:
Your package targets Standard 2.0, and uses this package's target for Standard 2.0, which polyfills AllowNullAttribute (that was introduced in Standard 2.1). Then, the user of your package targets Standard 2.1 (which already has an AllowNullAttribute) and uses your library for Standard 2.0, which in turn references this package (with polyfilled AllowNullAttribute).

Alternatively, you could set PrivateAssets="all" in the <PackageReference> item. Doing this will introduce some Reflection issues, so make sure you know what you're doing.

How does this compare to PolySharp?

PolySharp only polyfills types that are actually used (which is a good thing) and puts them in the project's own DLL file. But it doesn't work well in multi-project setups, with <InternalsVisibleTo> exposing one project's PolySharp generated files to another, causing ambiguous type errors.

Chasm.Compatibility, on the other hand, includes all of the types in a separate DLL. Nothing fancy, but it works fine with multiple projects, as long as you're careful with their targets.

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp1.0 is compatible.  netcoreapp1.1 is compatible.  netcoreapp2.0 is compatible.  netcoreapp2.1 is compatible.  netcoreapp2.2 was computed.  netcoreapp3.0 is compatible.  netcoreapp3.1 was computed. 
.NET Standard netstandard1.0 is compatible.  netstandard1.1 is compatible.  netstandard1.2 was computed.  netstandard1.3 is compatible.  netstandard1.4 was computed.  netstandard1.5 was computed.  netstandard1.6 was computed.  netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net35 is compatible.  net40 is compatible.  net403 was computed.  net45 is compatible.  net451 was computed.  net452 was computed.  net46 was computed.  net461 is compatible.  net462 was computed.  net463 was computed.  net47 is compatible.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen30 was computed.  tizen40 was computed.  tizen60 was computed. 
Universal Windows Platform uap was computed.  uap10.0 was computed. 
Windows Phone wp8 was computed.  wp81 was computed.  wpa81 was computed. 
Windows Store netcore was computed.  netcore45 was computed.  netcore451 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.6.2 88 9/28/2024
2.6.1 101 9/23/2024
2.6.0 91 9/19/2024
2.5.0 86 9/13/2024
2.4.1 71 7/30/2024
2.4.0 71 7/30/2024
2.3.0 61 7/30/2024
2.2.0 79 7/27/2024
2.1.1 75 7/27/2024
2.1.0 78 7/27/2024
2.0.0 76 7/26/2024