# ProjectLaunchConfiguration

- Kind: `class`
- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Version: `17.0.0`
- Namespace: `Aspire.Hosting.ApplicationModel`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting/ApplicationModel/ExecutableLaunchConfiguration.cs)
- Inherits: [ExecutableLaunchConfiguration](/reference/api/csharp/aspire.hosting/executablelaunchconfiguration.md)

The launch configuration used for .NET projects and file-based C# apps.

## Definition

```csharp
namespace Aspire.Hosting.ApplicationModel;

public sealed class ProjectLaunchConfiguration
    : Aspire.Hosting.ApplicationModel.ExecutableLaunchConfiguration
{
    // ...
}
```

## Remarks

The IDE launches the resource described by [IProjectMetadata](/reference/api/csharp/aspire.hosting/iprojectmetadata.md). When [ProjectLaunchConfiguration.SuppressBuild](/reference/api/csharp/aspire.hosting/projectlaunchconfiguration/properties.md#suppressbuild) is `true`, the IDE launches output produced by an external or coordinated build. When it is `false`, Aspire does not ask the IDE to suppress its normal build behavior, but Aspire may still prebuild the project before sending the launch request.

## Constructors

- [ProjectLaunchConfiguration](/reference/api/csharp/aspire.hosting/projectlaunchconfiguration/constructors.md#constructor) -- The launch configuration used for .NET projects and file-based C# apps.

## Properties

- [BuildConfiguration](/reference/api/csharp/aspire.hosting/projectlaunchconfiguration/properties.md#buildconfiguration) : `string?` `get; set` -- Gets or sets the build configuration used to produce the project output.
- [BuildEnvironment](/reference/api/csharp/aspire.hosting/projectlaunchconfiguration/properties.md#buildenvironment) : `Dictionary<string, string>` `get; set` -- Gets or sets the resolved environment variables that affected the externally produced build.
- [BuildWorkingDirectory](/reference/api/csharp/aspire.hosting/projectlaunchconfiguration/properties.md#buildworkingdirectory) : `string?` `get; set` -- Gets or sets the working directory used by the externally produced build.
- [DisableLaunchProfile](/reference/api/csharp/aspire.hosting/projectlaunchconfiguration/properties.md#disablelaunchprofile) : `bool` `get; set` -- Gets or sets a value indicating whether launch profile handling should be suppressed entirely.
- [LaunchProfile](/reference/api/csharp/aspire.hosting/projectlaunchconfiguration/properties.md#launchprofile) : `string` `get; set` -- Gets or sets the name of the launch profile the IDE should apply. Empty means the IDE picks the effective profile itself.
- [ProjectPath](/reference/api/csharp/aspire.hosting/projectlaunchconfiguration/properties.md#projectpath) : `string` `get; set` -- Gets or sets the fully-qualified path to the project file or file-based app to launch.
- [SuppressBuild](/reference/api/csharp/aspire.hosting/projectlaunchconfiguration/properties.md#suppressbuild) : `bool` `get; set` -- Gets or sets a value indicating whether the IDE should suppress building the project before launch.
