# WithDacDeployOptions

- Module: [CommunityToolkit.Aspire.Hosting.SqlDatabaseProjects](/reference/api/go/communitytoolkit.aspire.hosting.sqldatabaseprojects.md)
- Version: `13.6.1`
- Kind: `method`
- Defined on: [`SqlProjectResource`](/reference/api/go/communitytoolkit.aspire.hosting.sqldatabaseprojects/sqlprojectresource.md)
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/tree/d9c2addac6f527ef2e33712d290b84574b455a3b)

Sets the publish profile path used for DAC deployment options.

## Definition

```go
func (SqlProjectResource) WithDacDeployOptions(optionsPath string) SqlProjectResource
```

## Parameters

- `optionsPath` (`string`) -- Path to the publish profile xml file

## Returns

[`SqlProjectResource`](/reference/api/go/communitytoolkit.aspire.hosting.sqldatabaseprojects/sqlprojectresource.md) -- An `IResourceBuilder` that can be used to further customize the resource.

Returns a handle; failures surface later via `Err()`.

## Applies to

- [`SqlProjectResource`](/reference/api/go/communitytoolkit.aspire.hosting.sqldatabaseprojects/sqlprojectresource.md)
