Lvlup.Build
2.0.1
dotnet add package Lvlup.Build --version 2.0.1
NuGet\Install-Package Lvlup.Build -Version 2.0.1
<PackageReference Include="Lvlup.Build" Version="2.0.1"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
<PackageVersion Include="Lvlup.Build" Version="2.0.1" />
<PackageReference Include="Lvlup.Build"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
paket add Lvlup.Build --version 2.0.1
#r "nuget: Lvlup.Build, 2.0.1"
#:package Lvlup.Build@2.0.1
#addin nuget:?package=Lvlup.Build&version=2.0.1
#tool nuget:?package=Lvlup.Build&version=2.0.1
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.
Learn more about Target Frameworks and .NET Standard.
-
net10.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.