Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WebToolsE2E][Aspire] Building version 9.0.0 of AspireWithPython fails with an error: " 'Aspire.Hosting.PythonAppResourceBuilderExtensions.AddPythonApp()' is for evaluation purposes only and is subject to change or removal in future updates." #527

Open
v-sherryfan opened this issue Oct 30, 2024 · 3 comments

Comments

@v-sherryfan
Copy link

REGRESSION INFO: worked in main branch [Aspire 9.0.0 rc 1]

INSTALL STEPS

  1. Clean machine: Win11 x64 23h2 ENU
  2. Install VS 17.12 Preview 4
  3. Install Python [3.13.0]
  4. Install Docker Desktop
  5. Install azd [1.10.3]

REPRO STEPS

  1. Clone aspire-samples repo, checkout to UpdateTo9GA branch
  2. Add aspire 9.0.0 feed/mapping to nuget.config
  3. Open samples\AspireWithPython and build

ACTUAL
'Aspire.Hosting.PythonAppResourceBuilderExtensions.AddPythonApp(Aspire.Hosting.IDistributedApplicationBuilder, string, string, string, params string[])' is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
Image

NOTE

  • This issue does not reproduce on aspire-samples main branch [Aspire 9.0.0 rc 1]

EXPECTED
Building project without any errors.

@davidfowl
Copy link
Member

This is by design, we marked the API as experimental in Aspire 9 because it's unfinished. See dotnet/aspire#6298

@davidfowl davidfowl closed this as not planned Won't fix, can't repro, duplicate, stale Oct 30, 2024
@davidfowl davidfowl reopened this Oct 30, 2024
@davidfowl
Copy link
Member

@DamianEdwards we should update the sample to ignore the warning in source.

@DamianEdwards
Copy link
Member

DamianEdwards commented Oct 30, 2024

When the samples are updated for 9.0 GA, we will 😄
Already happened in this branch:

#pragma warning disable ASPIREHOSTINGPYTHON001 // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants