ANcpLua.Roslyn.Utilities.Testing.AgentTesting
1.47.0-preview.1
This is a prerelease version of ANcpLua.Roslyn.Utilities.Testing.AgentTesting.
dotnet add package ANcpLua.Roslyn.Utilities.Testing.AgentTesting --version 1.47.0-preview.1
NuGet\Install-Package ANcpLua.Roslyn.Utilities.Testing.AgentTesting -Version 1.47.0-preview.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="ANcpLua.Roslyn.Utilities.Testing.AgentTesting" Version="1.47.0-preview.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ANcpLua.Roslyn.Utilities.Testing.AgentTesting" Version="1.47.0-preview.1" />
<PackageReference Include="ANcpLua.Roslyn.Utilities.Testing.AgentTesting" />
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.AgentTesting --version 1.47.0-preview.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ANcpLua.Roslyn.Utilities.Testing.AgentTesting, 1.47.0-preview.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.
#:package ANcpLua.Roslyn.Utilities.Testing.AgentTesting@1.47.0-preview.1
#: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.AgentTesting&version=1.47.0-preview.1&prerelease
#tool nuget:?package=ANcpLua.Roslyn.Utilities.Testing.AgentTesting&version=1.47.0-preview.1&prerelease
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
- Microsoft.Agents.AI.Hosting.AGUI.AspNetCore (>= 1.0.0-preview.260311.1)
- Microsoft.AspNetCore.Mvc.Testing (>= 10.0.5)
- Microsoft.Bcl.AsyncInterfaces (>= 6.0.0)
- Microsoft.Extensions.AI.Abstractions (>= 10.4.0)
- 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.47.0-preview.1 | 31 | 3/12/2026 |