Skip to content
Docs Try Aspire

PythonAppResource.withVirtualEnvironment

Method
📦 Aspire.Hosting.Python v13.2.0-preview.1.26159.1
interface PythonAppResource {
// ... omitted for brevity
withVirtualEnvironment(
virtualEnvironmentPath: string,
createIfNotExists?: boolean): PythonAppResource;
}

Signature

method withVirtualEnvironment builder
Configures the virtual environment for a Python application
withVirtualEnvironment(
virtualEnvironmentPath: string,
createIfNotExists?: boolean): PythonAppResource
virtualEnvironmentPath string
createIfNotExists boolean optional = True
PythonAppResource

Defined on

This method is defined on the following type: