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] With SDK 8.0.300 + Aspire 8.0 GA, dotnet new aspire-starter does not work due to manifest provider returned a duplicate manifest ID 'microsoft.net.sdk.android'. #4145

Closed
v-elenafeng opened this issue May 10, 2024 · 9 comments

Comments

@v-elenafeng
Copy link

v-elenafeng commented May 10, 2024

INSTALL STEPS

  1. Clean machine: Win11 x64 23h2 ENU

  2. Install SDK 8.0.300

    • Apply feed for SDK 8.0.300
  3. Install Aspire 8.0 GA

    • Apply the "darc-pub-dotnet-aspire" feed for Aspire 8.0 GA
  4. Install cred helper (run from Windows PowerShell admin prompt)

    iex "& { $(irm https://aka.ms/install-artifacts-credprovider.ps1) }"

REPRO STEPS

  1. Run dotnet --info -- works fine

    image

  2. Run dotnet workload list

    image

  3. Run dotnet new aspire-starter -o Aspire-StarterApp01

ACTUAL
Template creation failed

image

EXPECTED
Template creation should succeed

@v-elenafeng
Copy link
Author

This issue can also be reproduced with a clean install of VS 17.10 GA (with Aspire 8.0 GA)+ Web workload when creating a new template using the CLI, but works fine using VS.

@balachir
Copy link

@joperezr are we missing an additional feed? It seems that 'dotnet new aspire-starter' doesn't work using CLI with above steps.

@balachir
Copy link

The error seems similar to an issue that was reported earlier as well - internal Bug 2048871.

@balachir
Copy link

Elena and I investigated today and it seems like a possible feed permissions issue. But still, we have two machines that Elena and I setup - she can still reproduce the issue on her machine and I cannot reproduce the issue on my machine. We'll continue doing more investigation on Monday.

@v-elenafeng
Copy link
Author

I installed a new machine today and can still reproduce this issue, it happens randomly and the failure rate is about 50%.

image

@balachir
Copy link

@joperezr @marcpopMSFT with the correct feeds applied, we seem to still run into this issue about 50% of the time, even within the same Command Prompt session as you can see in Elena's screenshot. Can you investigate, please?

@balachir balachir changed the title [WebToolsE2E][Aspire] With SDK 8.0.300 + Aspire 8.0 GA, it fails to initialize manifest provider due to duplicate manifest ID 'microsoft.net.sdk.android'. [WebToolsE2E][Aspire] With SDK 8.0.300 + Aspire 8.0 GA, dotnet new aspire-starter does not work due to manifest provider returned a duplicate manifest ID 'microsoft.net.sdk.android'. May 13, 2024
@marcpopMSFT
Copy link
Member

To summarize the investigation, there appears to be a parallelism issue within the template engine that affects workload related templates. Daniel is still digging into possible fixes but the short-term workaround (besides the customer just trying again) is to have the aspire templates remove the workload constraint. It should not be necessary within templates provided by workloads and appears to be causing duplicate resolution of the same workload. That's our recommendation for 8.0.1 version of the aspire workload.
https://github.com/dotnet/aspire/blob/main/src/Aspire.ProjectTemplates/templates/aspire-apphost/.template.config/template.json#L26-L31

@dsplaisted
Copy link
Member

Here are the details that I found in my investigation: dotnet/templating#7946 (comment)

@v-elenafeng
Copy link
Author

Close this issue as it was fixed both on Aspire 8.0.1 and 8.1 Preview 1.

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

No branches or pull requests

4 participants