Lvlup.Build
1.4.0
dotnet add package Lvlup.Build --version 1.4.0
NuGet\Install-Package Lvlup.Build -Version 1.4.0
<PackageReference Include="Lvlup.Build" Version="1.4.0"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
<PackageVersion Include="Lvlup.Build" Version="1.4.0" />
<PackageReference Include="Lvlup.Build"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
paket add Lvlup.Build --version 1.4.0
#r "nuget: Lvlup.Build, 1.4.0"
#:package Lvlup.Build@1.4.0
#addin nuget:?package=Lvlup.Build&version=1.4.0
#tool nuget:?package=Lvlup.Build&version=1.4.0
Lvlup.Build
Levelup Software build standards, analyzers, and code style enforcement for .NET projects.
Overview
Lvlup.Build is a NuGet meta-package that provides:
- Analyzers: StyleCop, Microsoft .NET Analyzers, and Visual Studio Threading Analyzers
- Build Properties: Consistent settings for nullable reference types, warnings-as-errors, and deterministic builds
- Override Points: Easy customization for project-specific needs
Installation
Add to your Directory.Build.props:
<ItemGroup>
<PackageReference Include="Lvlup.Build" PrivateAssets="all" />
</ItemGroup>
And to your Directory.Packages.props:
<ItemGroup>
<PackageVersion Include="Lvlup.Build" Version="1.0.0" />
</ItemGroup>
What's Included
Analyzers
| Package | Version | Purpose |
|---|---|---|
| StyleCop.Analyzers | 1.2.0-beta.556 | Code style and formatting |
| Microsoft.CodeAnalysis.NetAnalyzers | 10.0.0 | Code quality and .NET best practices |
| Microsoft.VisualStudio.Threading.Analyzers | 17.14.15 | Async/threading correctness |
StyleCop Configuration
The package includes a default stylecop.json that is automatically linked to your projects. To override:
- Add your own
stylecop.jsonto yoursrc/directory - Or disable the default:
<LvlupIncludeStyleCopConfig>false</LvlupIncludeStyleCopConfig>
Build Properties
The package automatically configures:
LangVersion:latestImplicitUsings:enableNullable:enableEnableNETAnalyzers:trueAnalysisLevel:latestTreatWarningsAsErrors:trueDeterministic:true
Override Points
Customize behavior by setting properties before the package is imported:
<PropertyGroup>
<LvlupTreatWarningsAsErrors Condition="'$(Configuration)' == 'Debug'">false</LvlupTreatWarningsAsErrors>
<LvlupEnableAnalyzers>false</LvlupEnableAnalyzers>
<LvlupEnableNullable>false</LvlupEnableNullable>
<LvlupRunAnalyzersDuringBuild>false</LvlupRunAnalyzersDuringBuild>
</PropertyGroup>
Companion Configuration
For full code style enforcement, pair this package with:
.editorconfig- Code formatting rules and analyzer severitiesstylecop.json- StyleCop-specific settings (company name, documentation rules)
Templates for these files are available via the /dotnet-standards Claude skill:
/dotnet-standards scaffold MyProject --company "My Company"
Installation
This package is published to nuget.org. No special configuration needed.
License
MIT
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- Microsoft.CodeAnalysis.NetAnalyzers (>= 10.0.100)
- Microsoft.VisualStudio.Threading.Analyzers (>= 17.14.15)
- StyleCop.Analyzers (>= 1.2.0-beta.556)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.