FunFair.BuildCheck 474.2.23.3006-github-actions

This is a prerelease version of FunFair.BuildCheck.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet tool install --global FunFair.BuildCheck --version 474.2.23.3006-github-actions
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local FunFair.BuildCheck --version 474.2.23.3006-github-actions
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=FunFair.BuildCheck&version=474.2.23.3006-github-actions&prerelease
                    
nuke :add-package FunFair.BuildCheck --version 474.2.23.3006-github-actions
                    

Build Check

Build checking tool

Usage

buildcheck -Solution D:\Source\Solution.slnx [-WarningAsErrors true|false] [-PreReleaseBuild true|false]
  • -Solution - path to the .sln or .slnx file 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. -Solution is not needed.
  • --help or -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 (PackAsTool set to true) must ship as native AOT, trimmed, per-RID packages (Error). They must set:

    • PublishAot, IsAotCompatible, EnableTrimAnalyzer, EnableAotAnalyzer and PublishTrimmed to true
    • TrimMode to full
    • ToolPackageRuntimeIdentifiers or RuntimeIdentifiers to a non-empty list of runtime identifiers
    • IsTrimmable must not be false

    A tool that cannot be published as native AOT (for example one built on Roslyn) can opt out by setting BuildCheckAllowNonAotTool to true together with a non-empty BuildCheckAllowNonAotToolReason explaining why; the opt-out without a reason is an error.

Build Status

Branch Status
main Build: Pre-Release
release Build: Release

Changelog

View changelog

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
474.2.23.3011-main 55 11/24/2026
474.2.23.3009-main 83 11/23/2026
474.2.23.3008-main 86 11/23/2026
474.2.23.3007-github-actions 87 11/23/2026
474.2.23.3006-github-actions 84 11/23/2026
474.2.23.3005-main 86 11/20/2026
474.2.23.3004-main 90 11/20/2026
474.2.23.3003-main 99 11/19/2026
474.2.23.3002-main 88 11/19/2026
474.2.23.3001-pull-507-merge 100 11/19/2026
474.2.23.3000-aot-tool-check 91 11/19/2026
474.2.23.2999-aot-tool-check 94 11/19/2026
474.2.23.2996-main 93 11/19/2026
474.2.23.2995-pull-506-merge 92 11/19/2026
474.2.23.2994-native-aot-tool 92 11/19/2026
474.2.23.2993-native-aot-tool 88 11/19/2026
474.2.23.2992-native-aot-tool 89 11/18/2026
474.2.23.2991-native-aot-tool 89 11/18/2026
474.2.23.2990-native-aot-tool 90 11/18/2026
474.2.23.2989-native-aot-tool 85 11/18/2026
Loading failed

### 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