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

[NETE2ESDK]With .NET 7.0.101 SDK installed, Warning "Workload garbage collection failed with error: An item with the same key has already been added. Key: (Microsoft.NETCore.App.Runtime.Mono.android-arm, 6.0.12) displayed when installing andriod workload in CLI. #29212

Closed
vdanche opened this issue Nov 24, 2022 · 9 comments

Comments

@vdanche
Copy link
Member

vdanche commented Nov 24, 2022

Repro steps:
1.installed .NET7.0.101 SDK(December update)
2.In CLI, execute: dotnet workload install android --skip-manifest-update

Expected Result:
workload should be installed successfully, and no warnings should be displayed in the output.

Actual Result:
Warning "Workload garbage collection failed with error: An item with the same key has already been added. Key: (Microsoft.NETCore.App.Runtime.Mono.android-arm, 6.0.12) displayed

image

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Workloads untriaged Request triage from a team member labels Nov 24, 2022
@vdanche
Copy link
Member Author

vdanche commented Nov 24, 2022

Also happens when executing command: dotnet workload repair
image

@sencagri
Copy link

sencagri commented Dec 2, 2022

Same error here

@marcpopMSFT marcpopMSFT self-assigned this Dec 6, 2022
@marcpopMSFT
Copy link
Member

Same as #29082. @dsplaisted any ideas what could trigger that? It's a benign error as part of the garbage collection but it means workload packs are being left installed.

@vdanche
Copy link
Member Author

vdanche commented Jan 10, 2023

not repro on today's 7.0.200 preview sdk: 7.0.200-preview.23059.6(runtime- 7.0.0)

@tossnet
Copy link

tossnet commented Jan 17, 2023

I have the same problem when creating a new MAUI Blazor project (SDK 7.02). In Debug it is good, but if I switch to RELEASE: impossible to build.
image

image

@dsplaisted
Copy link
Member

@tossnet Can you supply a binlog of the failing Release build and the successful Debug build?

@marcpopMSFT marcpopMSFT modified the milestones: 7.0.1xx, 7.0.3xx, 7.0.2xx Jan 18, 2023
@marcpopMSFT
Copy link
Member

The original issue was fixed in 2xx. Leaving it open there to follow up on the latest customer report so we eventually close this out in the correct milestone.

@vdanche
Copy link
Member Author

vdanche commented Jan 28, 2023

Check on 7.0.103 SDK, Installed android workload without any warning.
image
Also not repro on VS 17.4 with 7.0.103 inserted when building MAUI Blazor project
image

@vdanche
Copy link
Member Author

vdanche commented Jan 31, 2023

Also not repro on 7.0.200 SDK

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

5 participants