ExecutableResource(String, String, String) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A resource that represents a specified executable process.
public ExecutableResource(string name, string command, string workingDirectory);
new Aspire.Hosting.ApplicationModel.ExecutableResource : string * string * string -> Aspire.Hosting.ApplicationModel.ExecutableResource
Public Sub New (name As String, command As String, workingDirectory As String)
Parameters
- name
- String
The name of the resource.
- command
- String
The command to execute.
- workingDirectory
- String
The working directory of the executable. Can be empty.
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.