See the version list below for details.
dotnet add package Nullable --version 1.3.0
NuGet\Install-Package Nullable -Version 1.3.0
<PackageReference Include="Nullable" Version="1.3.0"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
paket add Nullable --version 1.3.0
#r "nuget: Nullable, 1.3.0"
// Install Nullable as a Cake Addin #addin nuget:?package=Nullable&version=1.3.0 // Install Nullable as a Cake Tool #tool nuget:?package=Nullable&version=1.3.0
A source code only package which allows you to use .NET's new nullable attributes in older target frameworks like .NET Standard 2.0 or the "old" .NET Framework.
This package does not contain any compiled binaries, but instead adds the attribute 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 nullable attributes. For example, if you create a library which multi-targets .NET Standard 2.0 and 2.1, the majority of the attributes are not included in the .NET Standard 2.1 version, because it already provides these by default.
Please see https://github.com/manuelroemer/Nullable for additional information on how to use this package.
|.NET||net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows|
|.NET Core||netcoreapp1.0 netcoreapp1.1 netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1|
|.NET Standard||netstandard1.0 netstandard1.1 netstandard1.2 netstandard1.3 netstandard1.4 netstandard1.5 netstandard1.6 netstandard2.0 netstandard2.1|
|.NET Framework||net20 net35 net40 net403 net45 net451 net452 net46 net461 net462 net463 net47 net471 net472 net48|
|Tizen||tizen30 tizen40 tizen60|
|Universal Windows Platform||uap uap10.0|
|Windows Phone||wp8 wp81 wpa81|
|Windows Store||netcore netcore45 netcore451|
This package has no dependencies.
NuGet packages (9)
Showing the top 5 NuGet packages that depend on Nullable:
Lightweight Http Mocking Server for .Net, inspired by WireMock from the Java landscape.
A collection of .NET libraries to help compiler development.
The .NET runtime for Bebop, a schema-based binary serialization format.
C# source code only package which allows you to use .NET's new nullable attributes and assertion method to check for null values. This package is an extension to https://www.nuget.org/packages/Nullable/. The C# code is only included if targeting a framework version which does not already cover nullable attributes. Requires C# 8.0 or later.
GitHub repositories (80)
Showing the top 5 popular GitHub repositories that depend on Nullable:
A .NET library that makes it easier to create beautiful console applications.
Simple .NET logging with fully-structured events
Extremely Fast MessagePack Serializer for C#(.NET, .NET Core, Unity, Xamarin). / msgpack.org[C#]
Extensible tool for weaving .net assemblies
SkiaSharp is a cross-platform 2D graphics API for .NET platforms based on Google's Skia Graphics Library. It provides a comprehensive 2D API that can be used across mobile, server and desktop models to render images.