# Editor.Asset.PublishSettings.BuildPublishContext

```csharp
ResourcePublishContext BuildPublishContext()
```

Ask the resource how it wants to be published (eg. whether its code should be bundled).

### Returns

`ResourcePublishContext`

Declared in [Editor.Asset.PublishSettings](/api/Editor.Asset.PublishSettings).
Assembly: `Sandbox.Tools`.
