Lvlup.Build 1.4.0

dotnet add package Lvlup.Build --version 1.4.0
                    
NuGet\Install-Package Lvlup.Build -Version 1.4.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="Lvlup.Build" Version="1.4.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="Lvlup.Build" Version="1.4.0" />
                    
Directory.Packages.props
<PackageReference Include="Lvlup.Build">
  <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 Lvlup.Build --version 1.4.0
                    
#r "nuget: Lvlup.Build, 1.4.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 Lvlup.Build@1.4.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=Lvlup.Build&version=1.4.0
                    
Install as a Cake Addin
#tool nuget:?package=Lvlup.Build&version=1.4.0
                    
Install as a Cake Tool

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:

  1. Add your own stylecop.json to your src/ directory
  2. Or disable the default: <LvlupIncludeStyleCopConfig>false</LvlupIncludeStyleCopConfig>

Build Properties

The package automatically configures:

  • LangVersion: latest
  • ImplicitUsings: enable
  • Nullable: enable
  • EnableNETAnalyzers: true
  • AnalysisLevel: latest
  • TreatWarningsAsErrors: true
  • Deterministic: 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:

  1. .editorconfig - Code formatting rules and analyzer severities
  2. stylecop.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

There are no supported framework assets in this 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.4.0 684 2/7/2026
1.3.0 85 2/5/2026
1.2.1 482 2/2/2026
1.2.0 89 2/1/2026