Ardalis.GuardClauses 4.0.1

.NET 6.0 .NET Standard 2.0 .NET Framework 4.5.1
dotnet add package Ardalis.GuardClauses --version 4.0.1
NuGet\Install-Package Ardalis.GuardClauses -Version 4.0.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="Ardalis.GuardClauses" Version="4.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Ardalis.GuardClauses --version 4.0.1
#r "nuget: Ardalis.GuardClauses, 4.0.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 Ardalis.GuardClauses as a Cake Addin
#addin nuget:?package=Ardalis.GuardClauses&version=4.0.1

// Install Ardalis.GuardClauses as a Cake Tool
#tool nuget:?package=Ardalis.GuardClauses&version=4.0.1

A simple package by @ardalis and @nimblepros with guard clause helper methods. See docs for how to extend using your own extension methods defined in your project.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  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 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. 
.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 net451 is compatible.  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. 
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (141)

Showing the top 5 NuGet packages that depend on Ardalis.GuardClauses:

Package Downloads

Nuget package for common helpers and enums


Package Description


A C# Client for the MockServer Docker Image


MONAI Deploy communication system between clinical data pipelines components.


Storage layer for MONAI Deploy clinical data pipelines system.

GitHub repositories (15)

Showing the top 5 popular GitHub repositories that depend on Ardalis.GuardClauses:

Repository Stars
Clean Architecture Solution Template: A starting point for Clean Architecture with ASP.NET Core
Sample ASP.NET Core 6.0 reference application, powered by Microsoft, demonstrating a layered application architecture with monolithic deployment model. Download the eBook PDF from docs folder.
smtp4dev - the fake smtp email server for development and testing
Base class with tests for adding specifications to a DDD model
A solution template using Clean Architecture for building a .NET Core Worker Service.
Version Downloads Last updated
4.0.1 3,292,553 3/28/2022
4.0.0 600,279 1/18/2022
3.3.0 811,876 10/29/2021
3.2.0 1,254,762 5/14/2021
3.1.0 501,488 2/13/2021
3.0.1 577,939 10/9/2020
3.0.0 186,604 8/20/2020
2.0.0 92,470 7/22/2020
1.5.0 733,126 4/29/2020
1.4.2 102,123 3/16/2020
1.4.1 80,541 2/13/2020
1.4.0 1,894 2/13/2020
1.3.3 57,774 1/18/2020
1.3.2 8,957 1/3/2020
1.3.1 63,222 11/15/2019
1.2.9 202,785 7/11/2019
1.2.8 89,035 2/11/2019
1.2.7 8,986 2/4/2019
1.2.6 2,160 1/24/2019
1.2.5 5,763 1/23/2019
1.2.4 406,269 11/26/2018
1.2.3 166,734 12/4/2017
1.2.2 2,052 12/1/2017
1.2.1 1,635 11/13/2017
1.2.0 1,263 11/13/2017
1.1.1 16,312 9/27/2017
1.1.0 945 9/26/2017
1.0.3 1,204 9/22/2017
1.0.2 1,277 9/22/2017
1.0.1 1,292 9/22/2017
1.0.0 10,245 9/12/2017

Add more support for CallerArgumentExpression.