ANcpLua.Roslyn.Utilities.Sources
1.52.0
dotnet add package ANcpLua.Roslyn.Utilities.Sources --version 1.52.0
NuGet\Install-Package ANcpLua.Roslyn.Utilities.Sources -Version 1.52.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.Sources" Version="1.52.0"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ANcpLua.Roslyn.Utilities.Sources" Version="1.52.0" />
<PackageReference Include="ANcpLua.Roslyn.Utilities.Sources"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
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.Sources --version 1.52.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ANcpLua.Roslyn.Utilities.Sources, 1.52.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.Sources@1.52.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.Sources&version=1.52.0
#tool nuget:?package=ANcpLua.Roslyn.Utilities.Sources&version=1.52.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
There are no supported framework assets in this package.
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
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.52.0 | 0 | 4/15/2026 |
| 1.51.1 | 106 | 4/12/2026 |
| 1.51.0 | 166 | 4/3/2026 |
| 1.50.0 | 93 | 4/3/2026 |
| 1.49.0 | 100 | 4/2/2026 |
| 1.48.0 | 183 | 3/20/2026 |
| 1.47.0 | 159 | 3/12/2026 |
| 1.45.0 | 146 | 3/10/2026 |
| 1.43.0 | 122 | 2/28/2026 |
| 1.42.0 | 139 | 2/28/2026 |
| 1.41.0 | 125 | 2/28/2026 |
| 1.40.0 | 152 | 2/15/2026 |
| 1.39.0 | 138 | 2/14/2026 |
| 1.38.2 | 134 | 2/14/2026 |
| 1.38.1 | 138 | 2/14/2026 |
| 1.38.0 | 139 | 2/14/2026 |
| 1.37.1 | 132 | 2/14/2026 |
| 1.37.0 | 131 | 2/14/2026 |
| 1.36.2 | 134 | 2/14/2026 |
| 1.36.1 | 133 | 2/14/2026 |
Loading failed