# SqlProjectResource.WithDacDeployOptions

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

Sets the publish profile path used for DAC deployment options.

## Definition

```go
type SqlProjectResource interface {
    // ... omitted for brevity
    WithDacDeployOptions(optionsPath string) SqlProjectResource
}
```

## Signature

```go
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()`.

## Defined on

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