dotnetKyle.IsExternalInit
1.0.1
See the version list below for details.
dotnet add package dotnetKyle.IsExternalInit --version 1.0.1
NuGet\Install-Package dotnetKyle.IsExternalInit -Version 1.0.1
<PackageReference Include="dotnetKyle.IsExternalInit" Version="1.0.1" />
paket add dotnetKyle.IsExternalInit --version 1.0.1
#r "nuget: dotnetKyle.IsExternalInit, 1.0.1"
// Install dotnetKyle.IsExternalInit as a Cake Addin #addin nuget:?package=dotnetKyle.IsExternalInit&version=1.0.1 // Install dotnetKyle.IsExternalInit as a Cake Tool #tool nuget:?package=dotnetKyle.IsExternalInit&version=1.0.1
Easily Add record support to a .NET Standard library
How to add C# record
support or init
support in a .NET Standard 2.0 library.
Just change your project to use the latest C# language version and add this nuget package.
Use latest C# version:
In .NET Standard 2.0, change your .csproj to use the latest lang version by adding the LangVersion
element:
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<LangVersion>latest</LangVersion>
</PropertyGroup>
Install the nuget package:
As a Project Reference:
<PackageReference Include="dotnetKyle.IsExternalInit" version="1.0.0" />
Using the CLI:
dotnet add package dotnetKyle.IsExternalInit
Using the Package Manager Console:
Install-Package dotnetKyle.IsExternalInit
Testing:
To test, rebuild your project to get your record
or init
setter to start working.
Alternatively, you can create a test record:
public record MyRecord(string MyString);
Then build your project.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. 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 was computed. 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 was computed. 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 | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net20 is compatible. net35 was computed. net40 was computed. net403 was computed. net45 was computed. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. 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 | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
This package has no dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on dotnetKyle.IsExternalInit:
Package | Downloads |
---|---|
ShellRunner
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.