CommandUpToDateCheck
Classsealednet10.0
Declares the inputs, outputs, and stamp file that let the CLI skip a command whose work is already done.
namespace Aspire.TypeSystem;
public sealed class CommandUpToDateCheck{ // ...}5 members
Remarks
Section titled Remarks This exists for compilers that have no incremental mode of their own.
javac given an explicit list of source files recompiles all of them every time, so an AppHost that has not changed still pays a full compile of the generated SDK on every launch. Toolchains that are already incremental ( cargo, for instance) do not need this. Constructors1
Section titled ConstructorsProperties4
Section titled PropertiesFileExtensionsget; initstring[]? Gets the file extensions, including the leading dot, that identify input files. Null or empty means every file found under
CommandUpToDateCheck.Inputs counts. Inputsget; initstring[] Gets the inputs to compare against the stamp file, relative to the working directory unless absolute. Supports the same placeholders as
CommandSpec.Args. Outputsget; initstring[]? Gets the outputs that must exist for the command to be considered up to date, relative to the working directory unless absolute. Supports the same placeholders as
CommandSpec.Args. Null or empty preserves the stamp-and-input-only behavior of older runtime specifications. StampFileget; initstring Gets the file, relative to the working directory unless absolute, written after the command succeeds and compared against the inputs on the next launch.