Microsoft.VisualStudio.Validation 17.6.4-alpha

Microsoft.VisualStudio.Validation

NuGet package Build Status codecov

This project is available as the Microsoft.VisualStudio.Validation NuGet package.

Basic input validation via the Requires class throws an ArgumentException.

Requires.NotNull(arg1, nameof(arg1));
Requires.NotNullOrEmpty(arg2, nameof(arg2));

State validation via the Verify class throws an InvalidOperationException.

Verify.Operation(condition, "some error occurred.");

Internal integrity checks via the Assumes class throws an InternalErrorException.

Assumes.True(condition, "some error");

Warning signs that should not throw exceptions via the Report class.

Report.IfNot(condition, "some error");

Showing the top 20 packages that depend on Microsoft.VisualStudio.Validation.

Packages Downloads
Microsoft.VisualStudio.Threading
Async synchronization primitives, async collections, TPL and dataflow extensions. The JoinableTaskFactory allows synchronously blocking the UI thread for async work. This package is applicable to any .NET application (not just Visual Studio).
187
Microsoft.VisualStudio.Threading
Async synchronization primitives, async collections, TPL and dataflow extensions. The JoinableTaskFactory allows synchronously blocking the UI thread for async work. This package is applicable to any .NET application (not just Visual Studio).
178
Microsoft.VisualStudio.Threading
Async synchronization primitives, async collections, TPL and dataflow extensions. The JoinableTaskFactory allows synchronously blocking the UI thread for async work. This package is applicable to any .NET application (not just Visual Studio).
174
Microsoft.VisualStudio.Threading
Async synchronization primitives, async collections, TPL and dataflow extensions. The JoinableTaskFactory allows synchronously blocking the UI thread for async work. This package is applicable to any .NET application (not just Visual Studio).
173
Nerdbank.Streams
Streams for full duplex in-proc communication, wrap a WebSocket, split a stream into multiple channels, etc.
173
Nerdbank.Streams
Streams for full duplex in-proc communication, wrap a WebSocket, split a stream into multiple channels, etc.
172
Microsoft.VisualStudio.Threading
Async synchronization primitives, async collections, TPL and dataflow extensions. The JoinableTaskFactory allows synchronously blocking the UI thread for async work. This package is applicable to any .NET application (not just Visual Studio).
170
Microsoft.VisualStudio.Threading
Async synchronization primitives, async collections, TPL and dataflow extensions. The JoinableTaskFactory allows synchronously blocking the UI thread for async work. This package is applicable to any .NET application (not just Visual Studio).
168
Nerdbank.Streams
Streams for full duplex in-proc communication, wrap a WebSocket, split a stream into multiple channels, etc.
166
Nerdbank.Streams
Streams for full duplex in-proc communication, wrap a WebSocket, split a stream into multiple channels, etc.
165
Microsoft.VisualStudio.Threading
Async synchronization primitives, async collections, TPL and dataflow extensions. The JoinableTaskFactory allows synchronously blocking the UI thread for async work. This package is applicable to any .NET application (not just Visual Studio).
164
Nerdbank.Streams
Streams for full duplex in-proc communication, wrap a WebSocket, split a stream into multiple channels, etc.
162
Microsoft.VisualStudio.Threading
Async synchronization primitives, async collections, TPL and dataflow extensions. The JoinableTaskFactory allows synchronously blocking the UI thread for async work. This package is applicable to any .NET application (not just Visual Studio).
162
Microsoft.VisualStudio.Threading
Async synchronization primitives, async collections, TPL and dataflow extensions. The JoinableTaskFactory allows synchronously blocking the UI thread for async work. This package is applicable to any .NET application (not just Visual Studio).
161
Nerdbank.Streams
Streams for full duplex in-proc communication, wrap a WebSocket, split a stream into multiple channels, etc.
160
Nerdbank.Streams
Streams for full duplex in-proc communication, wrap a WebSocket, split a stream into multiple channels, etc.
159

.NET 6.0

  • No dependencies.

.NET Standard 2.0

  • No dependencies.

Version Downloads Last updated
18.7.19 4 11/13/2026
17.13.22 97 8/13/2025
17.8.8 153 11/16/2023
17.6.11 172 5/19/2023
17.6.4-alpha 155 3/2/2023
17.0.71 140 7/22/2023
17.0.65 172 7/16/2023
17.0.64 163 9/21/2022
17.0.53 168 7/3/2022
17.0.50 163 7/3/2022
17.0.46 171 7/3/2022
17.0.43 159 7/3/2022
17.0.42 155 7/3/2022
17.0.34 179 7/3/2022
17.0.28 156 7/3/2022
17.0.25-alpha 158 7/3/2022
17.0.21-alpha 190 7/3/2022
17.0.16-alpha 190 7/3/2022
17.0.12-alpha 157 7/3/2022
17.0.11-alpha 157 7/3/2022
16.10.35 157 7/3/2022
16.10.34 161 7/3/2022
16.10.26 165 7/3/2022
16.9.32 147 7/3/2022
16.9.28 163 7/3/2022
16.9.27-alpha 164 7/3/2022
16.8.33 174 7/3/2022
15.5.31 159 7/3/2022
15.5.3 154 7/3/2022
15.3.58 179 7/3/2022
15.3.53 160 7/3/2022
15.3.32 167 7/3/2022
15.3.23 172 7/3/2022
15.3.15 159 7/3/2022
15.0.82 152 7/3/2022
15.0.75 161 7/3/2022
15.0.67 155 7/3/2022
15.0.55-pre 176 7/3/2022
15.0.11-pre 159 7/3/2022
14.1.111 148 7/3/2022
14.0.51103 158 7/3/2022
14.0.50702 164 7/3/2022
14.0.50417-pre 159 7/3/2022
12.0.0 173 7/3/2022