FunFair.BuildCheck
474.2.23.3002-main
See the version list below for details.
dotnet tool install --global FunFair.BuildCheck --version 474.2.23.3002-main
dotnet new tool-manifest
dotnet tool install --local FunFair.BuildCheck --version 474.2.23.3002-main
#tool dotnet:?package=FunFair.BuildCheck&version=474.2.23.3002-main&prerelease
nuke :add-package FunFair.BuildCheck --version 474.2.23.3002-main
Build Check
Build checking tool
Usage
buildcheck -Solution D:\Source\Solution.slnx [-WarningAsErrors true|false] [-PreReleaseBuild true|false]
-Solution- path to the.slnor.slnxfile to check.--self-test- proves the tool can start: loads its runtime dependencies and builds its service provider without reading any repository files or using the network. Exits 0 on success, or 1 with a one-line reason on stderr.-Solutionis not needed.--helpor-h- prints the usage and exits 0.
Checks
All projects referenced in the solution exist on disk
All project to project references exist on disk
Dotnet tool projects (
PackAsToolset totrue) must ship as native AOT, trimmed, per-RID packages (Error). They must set:PublishAot,IsAotCompatible,EnableTrimAnalyzer,EnableAotAnalyzerandPublishTrimmedtotrueTrimModetofullToolPackageRuntimeIdentifiersorRuntimeIdentifiersto a non-empty list of runtime identifiersIsTrimmablemust not befalse
A tool that cannot be published as native AOT (for example one built on Roslyn) can opt out by setting
BuildCheckAllowNonAotTooltotruetogether with a non-emptyBuildCheckAllowNonAotToolReasonexplaining why; the opt-out without a reason is an error.
Build Status
| Branch | Status |
|---|---|
| main | |
| release |
Changelog
View changelog
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
| Version | Downloads | Last Updated |
|---|---|---|
| 474.2.23.3005-main | 16 | 11/20/2026 |
| 474.2.23.3004-main | 33 | 11/20/2026 |
| 474.2.23.3003-main | 54 | 11/19/2026 |
| 474.2.23.3002-main | 42 | 11/19/2026 |
| 474.2.23.3001-pull-507-merge | 49 | 11/19/2026 |
| 474.2.23.3000-aot-tool-check | 43 | 11/19/2026 |
| 474.2.23.2999-aot-tool-check | 45 | 11/19/2026 |
| 474.2.23.2996-main | 51 | 11/19/2026 |
| 474.2.23.2995-pull-506-merge | 49 | 11/19/2026 |
| 474.2.23.2994-native-aot-tool | 45 | 11/19/2026 |
| 474.2.23.2993-native-aot-tool | 44 | 11/19/2026 |
| 474.2.23.2992-native-aot-tool | 44 | 11/18/2026 |
| 474.2.23.2991-native-aot-tool | 45 | 11/18/2026 |
| 474.2.23.2990-native-aot-tool | 41 | 11/18/2026 |
| 474.2.23.2989-native-aot-tool | 43 | 11/18/2026 |
| 474.2.22.2985 | 634 | 11/17/2026 |
| 474.2.22.2984-main | 67 | 11/17/2026 |
| 474.2.22.2983-main | 67 | 11/17/2026 |
| 474.2.22.2982-pull-503-merge | 59 | 11/17/2026 |
| 474.2.22.2981-native-assets-i | 69 | 11/17/2026 |
### Added
- New error-level build check (DotNetToolsMustBeNativeAotPolicy) requires dotnet tool projects (PackAsTool) to be published as native AOT and trimmed, so the tool stays fast to start and self-contained; projects can opt out with BuildCheckAllowNonAotTool, which must be given a reason
### Fixed
- Restored the coverage exclusion for ConsoleAppFramework generated sources
### Changed
- Publish buildcheck as a native AOT, trimmed, per-RID dotnet tool - #490
- Parse the command line with ConsoleAppFramework, keeping -Solution, -WarningAsErrors and -PreReleaseBuild as aliases - #490