Lvlup.Build 2.0.1

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

Lvlup.Build

Lvlup.Build supplies the C# build defaults, analyzer dependencies, StyleCop settings, and global analyzer configuration maintained in Hierophant. It contains no runtime assembly. Use the .NET 10 SDK. The analysis baseline is fixed at 10.0.

Reference Lvlup.Build with PrivateAssets="all" in a project and pin its version in Directory.Packages.props. This keeps development tooling out of downstream runtime packages. Hierophant application projects use the published package. The package itself and the source-mode verification fixture use the build files directly so a new candidate can be built before publication.

Version 2 removes the Lvlup* configuration switches and the central package management warning from version 1. Use standard MSBuild properties such as TreatWarningsAsErrors, Nullable, and RunAnalyzersDuringBuild when a project needs a different setting. Existing rule severities are preserved.

Build this product with dotnet pack build-standards.slnx -c Release. The application release solution remains hierophant.slnx. For a local candidate, supply -p:PackageVersion=2.0.0-local.1. Run scripts/test-build-standards.sh to pack once and verify the artifact in consumers outside the repository.

Automatic ConfigureAwait

C# builds using the .NET 10 SDK apply ConfigureAwait(false) to implicit awaits of Task, Task<T>, ValueTask, and ValueTask<T>, including the implicit awaits emitted for asynchronous iteration and disposal. Explicit ConfigureAwait calls retain their semantics. Other awaiter uses, such as task.GetAwaiter().GetResult() or a stored awaiter, do not change. The task runs during the build and uses no Fody packages. The IL tooling is bundled privately in this package.

For a project that needs its previous capture behavior, opt out in the project file or set the property in the repository's Directory.Build.props:

<PropertyGroup>
  <LvlupConfigureAwait>false</LvlupConfigureAwait>
</PropertyGroup>

Opting out restores the VSTHRD111 source policy. Opted-in projects suppress only that diagnostic. Review UI and other context-sensitive code for explicit capture when upgrading. Public- or delay-signed projects should opt out.

The IL transformation is adapted from ConfigureAwait 3.4.1 under MIT. The original notice is included alongside the packaged build tooling.

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
2.0.1 1,149 11/25/2026
2.0.0 1,714 11/12/2026
1.4.0 18,820 2/7/2026
1.3.0 418 2/5/2026
1.2.1 11,709 2/2/2026
1.2.0 415 2/1/2026