Skip to content

Add WithPip following Node.js patterns and rename AddPythonScript to AddPythonApp - #12667

Merged
davidfowl merged 24 commits into
mainfrom
copilot/simplify-pip-installation
Nov 5, 2025
Merged

Add WithPip following Node.js patterns and rename AddPythonScript to AddPythonApp#12667
davidfowl merged 24 commits into
mainfrom
copilot/simplify-pip-installation

Rename AddPythonScript to AddPythonApp with OverloadResolutionPriority

3b02a9c
Select commit
Loading
Failed to load commit list.
Azure Pipelines / dotnet.aspire (Build Linux) failed Nov 5, 2025 in 10m 9s

Build Linux failed

Annotations

Check failure on line 6 in playground/python/Python.AppHost/Program.cs

See this annotation in the file changed.

@azure-pipelines azure-pipelines / dotnet.aspire (Build Linux)

playground/python/Python.AppHost/Program.cs#L6

playground/python/Python.AppHost/Program.cs(6,1): error CS0618: (NETCORE_ENGINEERING_TELEMETRY=Build) 'PythonAppResourceBuilderExtensions.AddPythonScript(IDistributedApplicationBuilder, string, string, string)' is obsolete: 'Use AddPythonApp, AddPythonModule, or AddPythonExecutable instead for more explicit control over how the Python application is executed.'

Check failure on line 7 in playground/python/Python.AppHost/Program.cs

See this annotation in the file changed.

@azure-pipelines azure-pipelines / dotnet.aspire (Build Linux)

playground/python/Python.AppHost/Program.cs#L7

playground/python/Python.AppHost/Program.cs(7,1): error CS0618: (NETCORE_ENGINEERING_TELEMETRY=Build) 'PythonAppResourceBuilderExtensions.AddPythonScript(IDistributedApplicationBuilder, string, string, string)' is obsolete: 'Use AddPythonApp, AddPythonModule, or AddPythonExecutable instead for more explicit control over how the Python application is executed.'

Check failure on line 233 in tests/Aspire.Hosting.Python.Tests/AddPythonAppTests.cs

See this annotation in the file changed.

@azure-pipelines azure-pipelines / dotnet.aspire (Build Linux)

tests/Aspire.Hosting.Python.Tests/AddPythonAppTests.cs#L233

tests/Aspire.Hosting.Python.Tests/AddPythonAppTests.cs(233,9): error CS0618: (NETCORE_ENGINEERING_TELEMETRY=Build) 'PythonAppResourceBuilderExtensions.AddPythonScript(IDistributedApplicationBuilder, string, string, string)' is obsolete: 'Use AddPythonApp, AddPythonModule, or AddPythonExecutable instead for more explicit control over how the Python application is executed.'

Check failure on line 397 in tests/Aspire.Hosting.Python.Tests/AddPythonAppTests.cs

See this annotation in the file changed.

@azure-pipelines azure-pipelines / dotnet.aspire (Build Linux)

tests/Aspire.Hosting.Python.Tests/AddPythonAppTests.cs#L397

tests/Aspire.Hosting.Python.Tests/AddPythonAppTests.cs(397,13): error CS0618: (NETCORE_ENGINEERING_TELEMETRY=Build) 'PythonAppResourceBuilderExtensions.AddPythonScript(IDistributedApplicationBuilder, string, string, string)' is obsolete: 'Use AddPythonApp, AddPythonModule, or AddPythonExecutable instead for more explicit control over how the Python application is executed.'

Check failure on line 410 in tests/Aspire.Hosting.Python.Tests/AddPythonAppTests.cs

See this annotation in the file changed.

@azure-pipelines azure-pipelines / dotnet.aspire (Build Linux)

tests/Aspire.Hosting.Python.Tests/AddPythonAppTests.cs#L410

tests/Aspire.Hosting.Python.Tests/AddPythonAppTests.cs(410,9): error CS0618: (NETCORE_ENGINEERING_TELEMETRY=Build) 'PythonAppResourceBuilderExtensions.AddPythonScript(IDistributedApplicationBuilder, string, string, string)' is obsolete: 'Use AddPythonApp, AddPythonModule, or AddPythonExecutable instead for more explicit control over how the Python application is executed.'