ANcpLua.Roslyn.Utilities.Testing 1.37.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package ANcpLua.Roslyn.Utilities.Testing --version 1.37.0
                    
NuGet\Install-Package ANcpLua.Roslyn.Utilities.Testing -Version 1.37.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.37.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.37.0" />
                    
Directory.Packages.props
<PackageReference Include="ANcpLua.Roslyn.Utilities.Testing" />
                    
Project file
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.37.0
                    
#r "nuget: ANcpLua.Roslyn.Utilities.Testing, 1.37.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.37.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.37.0
                    
Install as a Cake Addin
#tool nuget:?package=ANcpLua.Roslyn.Utilities.Testing&version=1.37.0
                    
Install as a Cake Tool

NuGet NuGet NuGet NuGet .NET Standard 2.0 License: MIT

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

Product 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.

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