# DotnetProjectOptions

- Module: [Aspire.Hosting.Dotnet](/reference/api/go/aspire.hosting.dotnet.md)
- Version: `17.0.0`
- Kind: `struct`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/2d325b13709752ba6d9a943635c5e2940a2530c0)

Launch options for a .NET project in a polyglot AppHost.

## Definition

```go
type DotnetProjectOptions struct {
    LaunchProfileName       *string `json:"LaunchProfileName"`
    ExcludeLaunchProfile    *bool   `json:"ExcludeLaunchProfile"`
    ExcludeKestrelEndpoints *bool   `json:"ExcludeKestrelEndpoints"`
}
```

## Fields

- `LaunchProfileName`: `*string` `optional` -- The launch profile to use. If omitted or null, the default launch profile is used.
- `ExcludeLaunchProfile`: `*bool` `optional` -- Whether to disable launch profiles. When true, the launch profile name is ignored.
- `ExcludeKestrelEndpoints`: `*bool` `optional` -- Whether to ignore endpoints from Kestrel configuration.
