PythonAppResourceBuilderExtensions
AddPythonApp(IDistributedApplicationBuilder, String, String, String)
AddPythonApp(IDistributedApplicationBuilder, String, String, String, String[])
AddPythonApp(IDistributedApplicationBuilder, String, String, String, String, String[])
AddPythonExecutable(IDistributedApplicationBuilder, String, String, String)
AddPythonModule(IDistributedApplicationBuilder, String, String, String)
AddUvicornApp(IDistributedApplicationBuilder, String, String, String)
WithDebugging<T>(IResourceBuilder<T>)
WithEntrypoint<T>(IResourceBuilder<T>, EntrypointType, String)
WithPip<T>(IResourceBuilder<T>, Boolean, String[])
WithUv<T>(IResourceBuilder<T>, Boolean, String[])
WithVirtualEnvironment<T>(IResourceBuilder<T>, String, Boolean)
net11.0
namespace Aspire.Hosting
{
public static class PythonAppResourceBuilderExtensions
{
[AspireExport("withVirtualEnvironment", Description = "Configures the virtual environment for a Python application")]
public static IResourceBuilder<T!>! WithVirtualEnvironment<T>(this IResourceBuilder<T!>! builder, string! virtualEnvironmentPath, bool createIfNotExists = true)
where T, PythonAppResource!;
}
}
| .NET | 8.09.010.011.0 |
|---|---|
Information specific to net11.0 | |
| Assemblies | Aspire.Hosting.Python , Version=13.3.0.0, PublicKeyToken=cc7b13ffcd2ddd51 Aspire.Hosting.Python , Version=13.2.0.0, PublicKeyToken=cc7b13ffcd2ddd51 |
| Referencing | Your project needs a package reference to |
| Package | Aspire.Hosting.Python (13.3.0-preview.1.26178.7) net8.0 |
| Platform Restrictions | This API is supported on all platforms. |
- Built-in API
- Package-provided API