# Aspire.Hosting.Dotnet

- Module: `Aspire.Hosting.Dotnet`
- Version: `17.0.0`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/2d325b13709752ba6d9a943635c5e2940a2530c0)
- Functions: `5`
- Types: `2`

## Types

- [DotnetProjectOptions](/reference/api/typescript/aspire.hosting.dotnet/dotnetprojectoptions.md) -- `type` - 3 fields -- Launch options for a .NET project in a polyglot AppHost.
- [DotnetProjectResource](/reference/api/typescript/aspire.hosting.dotnet/dotnetprojectresource.md) -- `handle` - 4 members -- A resource that represents an SDK-style .NET project or file-based C# app added by path.

## Functions

- [addDotnetProject](/reference/api/typescript/aspire.hosting.dotnet/adddotnetproject.md) -- `method` -- Adds a .NET application resource.
- [disableForwardedHeaders](/reference/api/typescript/aspire.hosting.dotnet/disableforwardedheaders.md) -- `method` -- Disables automatic forwarded-header configuration when publishing the .NET project.
- [withBuildEnvironment](/reference/api/typescript/aspire.hosting.dotnet/withbuildenvironment.md) -- `method` -- Adds an environment variable to the build process for a .NET project.
- [withEndpointsInEnvironment](/reference/api/typescript/aspire.hosting.dotnet/withendpointsinenvironment.md) -- `method` -- Configures endpoint environment-variable injection for a .NET project in polyglot AppHosts.
- [withReplicas](/reference/api/typescript/aspire.hosting.dotnet/withreplicas.md) -- `method` -- Configures the number of replicas of the .NET project.
