Watch Aspire live streamsDocsTry Aspire

ProjectLaunchConfiguration Properties

ClassProperties7 members
The launch configuration used for .NET projects and file-based C# apps.
BuildConfigurationSection titled BuildConfigurationnullablestring?
Gets or sets the build configuration used to produce the project output.
public string? BuildConfiguration { get; set; }
The value corresponds to the MSBuild Configuration property, such as Debug or Release.
BuildEnvironmentSection titled BuildEnvironmentnullableDictionary<string, string>
Gets or sets the resolved environment variables that affected the externally produced build.
public Dictionary<string, string>? BuildEnvironment { get; set; }
IDE launchers use these authoritative values when evaluating build properties such as TargetPath. Empty means no project-specific build environment. These values are not a secret transport and can appear in build diagnostics.
BuildWorkingDirectorySection titled BuildWorkingDirectorynullablestring?
Gets or sets the working directory used by the externally produced build.
public string? BuildWorkingDirectory { get; set; }
IDE launchers use this directory to select the same .NET SDK and repository configuration when evaluating project properties or rebuilding.
DisableLaunchProfileSection titled DisableLaunchProfilebool
Gets or sets a value indicating whether launch profile handling should be suppressed entirely.
public bool DisableLaunchProfile { get; set; }
LaunchProfileSection titled LaunchProfilestring
Gets or sets the name of the launch profile the IDE should apply. Empty means the IDE picks the effective profile itself.
public string LaunchProfile { get; set; }
Gets or sets the fully-qualified path to the project file or file-based app to launch.
public string ProjectPath { get; set; }
Gets or sets a value indicating whether the IDE should suppress building the project before launch.
public bool SuppressBuild { get; set; }
When true, the project output was produced by an external or coordinated build and the IDE should launch it without rebuilding.