ANcpLua.Roslyn.Utilities.Testing
1.36.0
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.36.0
NuGet\Install-Package ANcpLua.Roslyn.Utilities.Testing -Version 1.36.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="ANcpLua.Roslyn.Utilities.Testing" Version="1.36.0" />
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.36.0" />
<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.36.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ANcpLua.Roslyn.Utilities.Testing, 1.36.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 ANcpLua.Roslyn.Utilities.Testing@1.36.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=ANcpLua.Roslyn.Utilities.Testing&version=1.36.0
#tool nuget:?package=ANcpLua.Roslyn.Utilities.Testing&version=1.36.0
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.
Packages
| Package | Purpose |
|---|---|
ANcpLua.Roslyn.Utilities |
Core utilities (DLL reference) |
ANcpLua.Roslyn.Utilities.Sources |
Source-only package (embeds as internal in analyzers/generators) |
ANcpLua.Roslyn.Utilities.Polyfills |
Source-only polyfills for netstandard2.0 (no Roslyn dependency) |
ANcpLua.Roslyn.Utilities.Testing |
Testing framework for Roslyn tooling |
Installation
# For analyzers/generators (source-only, no runtime dependency)
dotnet add package ANcpLua.Roslyn.Utilities.Sources
# For polyfills only (no Roslyn dependency)
dotnet add package ANcpLua.Roslyn.Utilities.Polyfills
# For runtime reference
dotnet add package ANcpLua.Roslyn.Utilities
# For testing
dotnet add package ANcpLua.Roslyn.Utilities.Testing
Polyfills
The .Polyfills and .Sources packages include polyfills for modern C# features on netstandard2.0:
| Polyfill | What it enables | Opt-out property |
|---|---|---|
Index / Range |
array[^1], array[1..3] syntax |
InjectIndexRangeOnLegacy |
IsExternalInit |
record types and init properties |
InjectIsExternalInitOnLegacy |
| Nullable attributes | [NotNull], [MaybeNull], etc. |
InjectNullabilityAttributesOnLegacy |
| Trim/AOT attributes | [RequiresUnreferencedCode], etc. |
InjectTrimAttributesOnLegacy |
TimeProvider |
Testable time abstraction | InjectTimeProviderPolyfill |
Lock |
System.Threading.Lock polyfill |
InjectLockPolyfill |
| String extensions | string.Contains(StringComparison) |
InjectStringExtensionsPolyfill |
All polyfills are enabled by default. Set any property to false to opt out, or disable all with:
<InjectAllPolyfillsOnLegacy>false</InjectAllPolyfillsOnLegacy>
Documentation
ancplua.mintlify.app/utilities
Related
| 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.36.0)
- AwesomeAssertions (>= 9.3.0)
- Basic.Reference.Assemblies.Net100 (>= 1.8.4)
- Basic.Reference.Assemblies.NetStandard20 (>= 1.8.4)
- Meziantou.Framework (>= 5.0.12)
- Meziantou.Framework.FullPath (>= 1.1.15)
- Meziantou.Framework.TemporaryDirectory (>= 1.0.33)
- Meziantou.Framework.Threading (>= 2.0.4)
- Microsoft.AspNetCore.Mvc.Testing (>= 10.0.3)
- Microsoft.Bcl.AsyncInterfaces (>= 6.0.0)
- 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.CodeAnalysis.Workspaces.Common (>= 5.0.0)
- Microsoft.Deployment.DotNet.Releases (>= 1.0.1)
- Microsoft.Extensions.Diagnostics.Testing (>= 10.3.0)
- Microsoft.Extensions.Telemetry.Abstractions (>= 10.3.0)
- 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.40.0 | 34 | 2/15/2026 |
| 1.39.0 | 52 | 2/14/2026 |
| 1.38.2 | 108 | 2/14/2026 |
| 1.38.1 | 40 | 2/14/2026 |
| 1.38.0 | 30 | 2/14/2026 |
| 1.37.1 | 30 | 2/14/2026 |
| 1.37.0 | 32 | 2/14/2026 |
| 1.36.2 | 29 | 2/14/2026 |
| 1.36.1 | 31 | 2/14/2026 |
| 1.36.0 | 25 | 2/14/2026 |
| 1.35.0 | 35 | 2/14/2026 |
| 1.34.0 | 72 | 2/13/2026 |
| 1.33.0 | 62 | 2/13/2026 |
| 1.32.0 | 31 | 2/13/2026 |
| 1.31.0 | 154 | 2/7/2026 |
| 1.30.2 | 137 | 2/5/2026 |
| 1.30.1 | 99 | 2/4/2026 |
| 1.30.0 | 94 | 2/4/2026 |
| 1.29.0 | 110 | 2/4/2026 |
| 1.9.1 | 84 | 2/4/2026 |
Loading failed