NativeData.Analyzers
0.5.2
dotnet add package NativeData.Analyzers --version 0.5.2
NuGet\Install-Package NativeData.Analyzers -Version 0.5.2
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="NativeData.Analyzers" Version="0.5.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="NativeData.Analyzers" Version="0.5.2" />
<PackageReference Include="NativeData.Analyzers" />
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 NativeData.Analyzers --version 0.5.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: NativeData.Analyzers, 0.5.2"
#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 NativeData.Analyzers@0.5.2
#: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=NativeData.Analyzers&version=0.5.2
#tool nuget:?package=NativeData.Analyzers&version=0.5.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
NativeData.Analyzers
Roslyn analyzer project for NativeData AOT/trimming safety diagnostics.
Contents
TrimSafetyAnalyzer(ND000xcompatibility rules)NativeDataEntityAnalyzer(ND100xNativeData mapping rules)- Rule IDs in the
NDxxxxnamespace (starting withND0001)
Rules
ND0001— Avoid runtime type loading (Type.GetType(...))- Remediation: docs/analyzers/ND0001.md
ND0002— Avoid runtime assembly loading (Assembly.Load(string))- Remediation: docs/analyzers/ND0002.md
ND0003— Avoid string-based runtime activation (Activator.CreateInstance(string, string))- Remediation: docs/analyzers/ND0003.md
ND1001— NativeData entity key column must map to a public property- Remediation: docs/analyzers/ND1001.md
ND1002— NativeDataEntitytableName/keyColumnliterals must be non-empty- Remediation: docs/analyzers/ND1002.md
Build
dotnet build src/NativeData.Analyzers/NativeData.Analyzers.csproj
Packaging
This project is packable and emits analyzer artifacts under analyzers/dotnet/cs in the NuGet package.
There are no supported framework assets in this package.
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- 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.
Use docs/release-notes-template.md as the baseline for release notes and changelog entries.