FunFair.BuildCheck 474.2.23.3007-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.3007-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.3007-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.3007-github-actions&prerelease
                    
nuke :add-package FunFair.BuildCheck --version 474.2.23.3007-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 0 11/24/2026
474.2.23.3009-main 58 11/23/2026
474.2.23.3008-main 65 11/23/2026
474.2.23.3007-github-actions 67 11/23/2026
474.2.23.3006-github-actions 65 11/23/2026
474.2.23.3005-main 70 11/20/2026
474.2.23.3004-main 72 11/20/2026
474.2.23.3003-main 77 11/19/2026
474.2.23.3002-main 68 11/19/2026
474.2.23.3001-pull-507-merge 79 11/19/2026
474.2.23.3000-aot-tool-check 69 11/19/2026
474.2.23.2999-aot-tool-check 73 11/19/2026
474.2.23.2996-main 77 11/19/2026
474.2.23.2995-pull-506-merge 76 11/19/2026
474.2.23.2994-native-aot-tool 74 11/19/2026
474.2.23.2993-native-aot-tool 71 11/19/2026
474.2.23.2992-native-aot-tool 70 11/18/2026
474.2.23.2991-native-aot-tool 72 11/18/2026
474.2.23.2990-native-aot-tool 71 11/18/2026
474.2.23.2989-native-aot-tool 69 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