ANcpLua.Roslyn.Utilities.Testing
1.47.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.47.0
NuGet\Install-Package ANcpLua.Roslyn.Utilities.Testing -Version 1.47.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.47.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.47.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.47.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ANcpLua.Roslyn.Utilities.Testing, 1.47.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.47.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.47.0
#tool nuget:?package=ANcpLua.Roslyn.Utilities.Testing&version=1.47.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.47.0)
- AwesomeAssertions (>= 9.4.0)
- Basic.Reference.Assemblies.Net100 (>= 1.8.4)
- Basic.Reference.Assemblies.NetStandard20 (>= 1.8.4)
- Meziantou.Framework (>= 5.0.13)
- Meziantou.Framework.FullPath (>= 1.1.16)
- Meziantou.Framework.TemporaryDirectory (>= 1.0.35)
- Meziantou.Framework.Threading (>= 2.0.4)
- Microsoft.AspNetCore.Mvc.Testing (>= 10.0.5)
- Microsoft.Bcl.AsyncInterfaces (>= 6.0.0)
- Microsoft.Bcl.HashCode (>= 6.0.0)
- Microsoft.CodeAnalysis.Analyzer.Testing (>= 1.1.3)
- Microsoft.CodeAnalysis.Analyzers (>= 5.3.0)
- Microsoft.CodeAnalysis.CSharp (>= 5.3.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.3.0)
- Microsoft.CodeAnalysis.Workspaces.Common (>= 5.3.0)
- Microsoft.Deployment.DotNet.Releases (>= 1.0.1)
- Microsoft.Extensions.AI.Abstractions (>= 10.4.0)
- Microsoft.Extensions.Diagnostics.Testing (>= 10.4.0)
- Microsoft.Extensions.Telemetry.Abstractions (>= 10.4.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 |
|---|---|---|
| 2.2.10 | 22 | 5/8/2026 |
| 2.2.9 | 66 | 5/7/2026 |
| 2.2.8 | 70 | 5/7/2026 |
| 2.2.7 | 77 | 5/7/2026 |
| 2.2.6 | 64 | 5/7/2026 |
| 2.2.5 | 864 | 5/6/2026 |
| 2.2.4 | 64 | 5/6/2026 |
| 2.2.3 | 156 | 5/5/2026 |
| 2.2.2 | 101 | 5/4/2026 |
| 2.2.1 | 121 | 5/4/2026 |
| 2.2.0 | 1,105 | 4/30/2026 |
| 2.1.1 | 134 | 4/27/2026 |
| 2.1.0 | 109 | 4/27/2026 |
| 2.0.7 | 321 | 4/27/2026 |
| 2.0.6 | 125 | 4/26/2026 |
| 2.0.5 | 104 | 4/25/2026 |
| 2.0.4 | 262 | 4/24/2026 |
| 2.0.3 | 146 | 4/24/2026 |
| 2.0.2 | 379 | 4/21/2026 |
| 1.47.0 | 213 | 3/12/2026 |
Loading failed