ANcpLua.Roslyn.Utilities.Testing
1.18.2
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package ANcpLua.Roslyn.Utilities.Testing --version 1.18.2
NuGet\Install-Package ANcpLua.Roslyn.Utilities.Testing -Version 1.18.2
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="ANcpLua.Roslyn.Utilities.Testing" Version="1.18.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ANcpLua.Roslyn.Utilities.Testing" Version="1.18.2" />
<PackageReference Include="ANcpLua.Roslyn.Utilities.Testing" />
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 ANcpLua.Roslyn.Utilities.Testing --version 1.18.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ANcpLua.Roslyn.Utilities.Testing, 1.18.2"
#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 ANcpLua.Roslyn.Utilities.Testing@1.18.2
#: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=ANcpLua.Roslyn.Utilities.Testing&version=1.18.2
#tool nuget:?package=ANcpLua.Roslyn.Utilities.Testing&version=1.18.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
ANcpLua.Roslyn.Utilities
Utilities for Roslyn analyzers and source generators. Less boilerplate, proper caching, no lost diagnostics.
Installation
dotnet add package ANcpLua.Roslyn.Utilities
dotnet add package ANcpLua.Roslyn.Utilities.Testing # for tests
Quick Start
// Railway-oriented pipeline - diagnostics flow through, never lost
provider
.SelectFlow(ExtractModel)
.ThenFlow(Validate)
.ReportAndContinue(context)
.AddSource(context);
// Fluent symbol matching
Match.Method().Async().ReturningTask().Public().Matches(method);
Invoke.Method("Dispose").OnTypeImplementing("IDisposable").Matches(invocation);
// Declarative validation
SemanticGuard.ForMethod(method)
.MustBeAsync(asyncRequired)
.MustHaveCancellationToken(ctRequired)
.ToFlow();
Features
| Category | Key APIs |
|---|---|
| Flow Control | DiagnosticFlow<T>, ReportAndContinue(), CollectFlows() |
| Pattern Matching | Match.* (symbols), Invoke.* (operations) |
| Validation | SemanticGuard<T> |
| Domain Contexts | AwaitableContext, AspNetContext, DisposableContext, CollectionContext |
| Extensions | SymbolExtensions, TypeSymbolExtensions, OperationExtensions, InvocationExtensions |
| Code Generation | IndentedStringBuilder, ValueStringBuilder, GeneratedCodeHelpers |
| Pipeline | GroupBy(), Batch(), Distinct(), CollectAsEquatableArray() |
Packages
| Package | Target | Description |
|---|---|---|
ANcpLua.Roslyn.Utilities |
netstandard2.0 | Core library |
ANcpLua.Roslyn.Utilities.Testing |
net10.0 | Generator test framework with caching validation |
Documentation
ancplua.mintlify.app/utilities
Related
- ANcpLua.NET.Sdk — MSBuild SDK
- ANcpLua.Analyzers — Custom analyzers
License
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. 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.
-
net10.0
- ANcpLua.Roslyn.Utilities (>= 1.18.2)
- AwesomeAssertions (>= 9.3.0)
- Basic.Reference.Assemblies.Net100 (>= 1.8.4)
- Basic.Reference.Assemblies.NetStandard20 (>= 1.8.4)
- Meziantou.Framework (>= 5.0.11)
- Meziantou.Framework.FullPath (>= 1.1.13)
- Meziantou.Framework.TemporaryDirectory (>= 1.0.31)
- Meziantou.Framework.Threading (>= 2.0.4)
- Microsoft.Bcl.HashCode (>= 6.0.0)
- Microsoft.CodeAnalysis.Analyzer.Testing (>= 1.1.3)
- Microsoft.CodeAnalysis.CSharp (>= 5.0.0)
- Microsoft.CodeAnalysis.CSharp.Analyzer.Testing (>= 1.1.3)
- Microsoft.CodeAnalysis.CSharp.CodeFix.Testing (>= 1.1.3)
- Microsoft.CodeAnalysis.CSharp.CodeRefactoring.Testing (>= 1.1.3)
- Microsoft.CodeAnalysis.CSharp.SourceGenerators.Testing (>= 1.1.3)
- Microsoft.CodeAnalysis.CSharp.Workspaces (>= 5.0.0)
- Microsoft.Deployment.DotNet.Releases (>= 1.0.1)
- MSBuild.StructuredLogger (>= 2.3.113)
- xunit.v3.assert (>= 3.2.2)
- xunit.v3.extensibility.core (>= 3.2.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.18.3 | 77 | 1/23/2026 |
| 1.18.2 | 39 | 1/23/2026 |
| 1.18.1 | 47 | 1/23/2026 |
| 1.18.0 | 73 | 1/22/2026 |
| 1.17.0 | 64 | 1/22/2026 |
| 1.16.0 | 199 | 1/21/2026 |
| 1.15.0 | 96 | 1/21/2026 |
| 1.14.0 | 146 | 1/20/2026 |
| 1.13.0 | 179 | 1/18/2026 |
| 1.12.0 | 109 | 1/14/2026 |
| 1.11.0 | 44 | 1/14/2026 |
| 1.10.0 | 176 | 1/10/2026 |
| 1.9.0 | 45 | 1/10/2026 |
| 1.8.0 | 45 | 1/10/2026 |
| 1.7.0 | 88 | 1/10/2026 |
| 1.6.0 | 45 | 1/9/2026 |
| 1.5.1 | 46 | 1/9/2026 |
| 1.5.0 | 47 | 1/8/2026 |
| 1.3.1 | 55 | 12/30/2025 |
| 1.2.8 | 48 | 12/30/2025 |
| 1.2.7 | 48 | 12/30/2025 |
| 1.2.6 | 40 | 12/30/2025 |
| 1.2.4 | 43 | 12/30/2025 |
| 1.2.2 | 43 | 12/29/2025 |
| 1.2.1 | 45 | 12/29/2025 |
| 1.2.0 | 147 | 12/24/2025 |
| 1.0.0 | 112 | 12/20/2025 |