RequiredCommandAnnotation
Class net8.0
An annotation which declares that a resource requires a specific command/executable to be available on the local machine PATH before it can start.
namespace Aspire.Hosting.ApplicationModel;
public class RequiredCommandAnnotation : Aspire.Hosting.ApplicationModel.IResourceAnnotation{ // ...}Constructors1
Section titled ConstructorsProperties3
Section titled PropertiesCommandgetstring Gets the command string (file name or path) that should be validated.
HelpLinkget; initstring? Gets or sets an optional help link URL to guide users when the command is missing.
ValidationCallbackget; initFunc<RequiredCommandValidationContext, Task<RequiredCommandValidationResult>> Gets or sets an optional custom validation callback that will be invoked after the command has been resolved.