ExecutableResource
Class net10.0
A resource that represents a specified executable process.
namespace Aspire.Hosting.ApplicationModel;
public class ExecutableResource : Aspire.Hosting.ApplicationModel.Resource, Aspire.Hosting.ApplicationModel.IComputeResource, Aspire.Hosting.ApplicationModel.IResource, Aspire.Hosting.ApplicationModel.IResourceWithArgs, Aspire.Hosting.ApplicationModel.IResourceWithEndpoints, Aspire.Hosting.ApplicationModel.IResourceWithEnvironment, Aspire.Hosting.ApplicationModel.IResourceWithProbes, Aspire.Hosting.ApplicationModel.IResourceWithWaitSupport{ // ...}Remarks
Section titled Remarks You can run any executable command using its full path. As a security feature, Aspire doesn't run executable unless the command is located in a path listed in the PATH environment variable. To run an executable file that's in the current directory, specify the full path or use the relative path
./ to represent the current directory.