RequiredCommandResourceExtensions
Classstaticnet10.0
Provides extension methods for adding required command annotations to resources.
namespace Aspire.Hosting;
public static class RequiredCommandResourceExtensions{ // ...}Methods2
Section titled Methods Declares that a resource requires a specific command/executable to be available on the local machine PATH before it can start.
WithRequiredCommand(IResourceBuilder<T>, string, Func<RequiredCommandValidationContext, Task<RequiredCommandValidationResult>>, string?)extensionexperimentalats export Declares that a resource requires a specific command/executable to be available on the local machine PATH before it can start, with custom validation logic.