Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

BrowserUserDataMode

Enum
📦 Aspire.Hosting.Browsers v17.0.0-preview.1.26565.2

Selects the Chromium user data directory used by tracked browser sessions.

type BrowserUserDataMode string
const (
BrowserUserDataModeShared BrowserUserDataMode = "Shared"
BrowserUserDataModeIsolated BrowserUserDataMode = "Isolated"
)

Values

BrowserUserDataModeShared"Shared"
Use a persistent Aspire-managed user data directory shared across all AppHosts on the machine. State such as cookies, sign-ins, and extensions persist across runs and are visible to every AppHost using the same browser.
BrowserUserDataModeIsolated"Isolated"
Use a persistent Aspire-managed user data directory scoped to the current AppHost project. Each AppHost gets its own state that persists across runs but is not shared with other AppHosts.