ValidateBuild
Interface: IValidateBuild
Package: DecSm.Atom.Build
The ValidateBuild target checks the Atom build configuration for common issues.
What It Does
- Inspects all targets in the build model.
- Reports warnings for targets without descriptions.
- Reports errors for critical configuration problems (extensible).
- Adds warning/error lists to the build report.
- Throws
StepFailedExceptionif any errors are found.
Usage
Run directly:
dotnet run -- ValidateBuild
Or include as a dependency:
Target MyTarget => t => t
.DependsOn(nameof(IValidateBuild.ValidateBuild))
.Executes(() => { /* ... */ });
Output
Warnings appear in the build report. Example:
Warnings:
- Target 'MyTarget' has no description.