Eltele.Analyzers 1.0.0-alpha.2

This is a prerelease version of Eltele.Analyzers.
dotnet add package Eltele.Analyzers --version 1.0.0-alpha.2
                    
NuGet\Install-Package Eltele.Analyzers -Version 1.0.0-alpha.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="Eltele.Analyzers" Version="1.0.0-alpha.2">
  <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="Eltele.Analyzers" Version="1.0.0-alpha.2" />
                    
Directory.Packages.props
<PackageReference Include="Eltele.Analyzers">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
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 Eltele.Analyzers --version 1.0.0-alpha.2
                    
#r "nuget: Eltele.Analyzers, 1.0.0-alpha.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 Eltele.Analyzers@1.0.0-alpha.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=Eltele.Analyzers&version=1.0.0-alpha.2&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Eltele.Analyzers&version=1.0.0-alpha.2&prerelease
                    
Install as a Cake Tool

Eltele.Analyzers

Custom Roslyn analyzers that enforce security and correctness conventions across Eltele's .NET projects. The analyzers run at compile time and surface issues as build diagnostics, catching problems before they reach production.

The focus is on security-critical patterns that are easy to get wrong silently — such as missing authorization on API endpoints or using framework-mismatched attributes that compile but have no effect at runtime.

Installation

Add the analyzer package to your project:

<PackageReference Include="Eltele.Analyzers" PrivateAssets="all" />

All rules are enabled by default. Diagnostics will appear as errors or warnings during build depending on their default severity.

Configuration

Rule severities can be adjusted per-project or per-solution using an .editorconfig file:

[*.cs]
dotnet_diagnostic.ELTELE001.severity = warning

Or suppressed entirely via <NoWarn> in a .csproj:

<PropertyGroup>
    <NoWarn>$(NoWarn);ELTELE001</NoWarn>
</PropertyGroup>

Building from source

dotnet build
dotnet test

Or via Nx from the monorepo root:

npx nx build dotnet-analyzers
npx nx test dotnet-analyzers

License

This project is licensed under the MIT License.

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.0.0-alpha.2 67 2/12/2026
1.0.0-alpha.0 65 2/11/2026