Install-Package CSharpRecordEnabler -Version 1.0.2
dotnet add package CSharpRecordEnabler --version 1.0.2
<PackageReference Include="CSharpRecordEnabler" Version="1.0.2"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
paket add CSharpRecordEnabler --version 1.0.2
#r "nuget: CSharpRecordEnabler, 1.0.2"
// Install CSharpRecordEnabler as a Cake Addin #addin nuget:?package=CSharpRecordEnabler&version=1.0.2 // Install CSharpRecordEnabler as a Cake Tool #tool nuget:?package=CSharpRecordEnabler&version=1.0.2
A source code only package which allows you to use .NET's new C# 9 Record feature in older target frameworks like .NET Standard 2.0, .NET Core App below 5 or the old .NET Framework.
This package does not contain any compiled binaries, but instead adds the required classes as C# source code to your project. Because this code is compiled together with the rest of your code, the built binaries will not have a dependency on this package, meaning that you can perfectly use it for both libraries and applications.
The C# code is only included if you are targeting a framework version which does not support the new record feature.
Please see https://github.com/ChristophWeigert/CSharpRecordEnabler for additional information on how to use this package.
This package has no dependencies.
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.