DiscriminatedOnions 1.5.0
dotnet add package DiscriminatedOnions --version 1.5.0
NuGet\Install-Package DiscriminatedOnions -Version 1.5.0
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="DiscriminatedOnions" Version="1.5.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DiscriminatedOnions" Version="1.5.0" />
<PackageReference Include="DiscriminatedOnions" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add DiscriminatedOnions --version 1.5.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: DiscriminatedOnions, 1.5.0"
#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.
#:package DiscriminatedOnions@1.5.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=DiscriminatedOnions&version=1.5.0
#tool nuget:?package=DiscriminatedOnions&version=1.5.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
A stinky but tasty hack to emulate F#-like discriminated unions in C#
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net6.0
- No dependencies.
NuGet packages (3)
Showing the top 3 NuGet packages that depend on DiscriminatedOnions:
| Package | Downloads |
|---|---|
|
Ragu.Postgres
Basic Postgres class and methods |
|
|
JVM-Mongo
Basic Mongo class and methods |
|
|
Ragu.Mongo
Basic Mongo class and methods |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.5.0 | 33,061 | 7/21/2024 |
| 1.4.1 | 1,691 | 5/31/2024 |
| 1.4.0 | 412 | 5/18/2024 |
| 1.3.1 | 1,916 | 1/28/2024 |
| 1.3.0 | 424 | 1/7/2024 |
| 1.2.0 | 2,717 | 3/26/2023 |
| 1.1.0 | 648 | 11/30/2022 |
| 1.0.1 | 839 | 10/19/2022 |
| 1.0.0 | 547 | 10/16/2022 |
| 1.0.0-rc.1 | 294 | 10/8/2022 |
| 0.3.1 | 3,095 | 3/29/2022 |
| 0.3.0 | 617 | 3/27/2022 |
| 0.2.0 | 459 | 1/16/2022 |
| 0.1.0 | 433 | 1/9/2022 |