ExecutableLaunchConfiguration
Classnet10.0
Base properties shared by all launch configurations handed to an IDE or extension host.
namespace Aspire.Hosting.ApplicationModel;
public class ExecutableLaunchConfiguration{ // ...}Remarks
Section titled RemarksA launch configuration describes how a resource should be started when Aspire is running inside an IDE debug session. It is serialized to JSON and attached to the underlying orchestrator object, so the property names below (and any added by derived types) are part of the IDE contract.
Integrations create a derived type and supply it through ResourceBuilderExtensions.WithDebugSupport or its asynchronous overload.
Constructors1
Section titled ConstructorsProperties2
Section titled PropertiesModeget; setstring Gets or sets the launch mode, one of the values on
ExecutableLaunchMode. Typeget; setstring Gets or sets the launch configuration type identifier.
Examples
Section titled ExamplesA launch configuration for a hypothetical language integration:
internal sealed class ContosoLaunchConfiguration() : ExecutableLaunchConfiguration("contoso"){ [JsonPropertyName("script_path")] public string ScriptPath { get; set; } = string.Empty;}