# PublishingOptions

- Kind: `class`
- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Version: `13.3.0`
- Namespace: `Aspire.Hosting.Publishing`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/Publishing/PublishingOptions.cs)

Represents the options for publishing an application.

## Definition

```csharp
namespace Aspire.Hosting.Publishing;

public class PublishingOptions
{
    // ...
}
```

## Constructors

- [PublishingOptions](/reference/api/csharp/aspire.hosting/publishingoptions/constructors.md#constructor)

## Properties

- [Deploy](/reference/api/csharp/aspire.hosting/publishingoptions/properties.md#deploy) : `bool` `get; set` -- Gets or sets a value indicating whether the application should be deployed after publishing.
- [OutputPath](/reference/api/csharp/aspire.hosting/publishingoptions/properties.md#outputpath) : `string?` `get; set` -- Gets or sets the path to the directory where the published output will be written.
- [Publisher](/reference/api/csharp/aspire.hosting/publishingoptions/properties.md#publisher) : `string?` `get; set` -- Gets or sets the name of the publisher responsible for publishing the application.

## Fields

- [Publishing](/reference/api/csharp/aspire.hosting/publishingoptions/fields.md#publishing) : `string` `static` -- The name of the publishing configuration section in the appsettings.json file.
