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

NU1505 appears in 17.3.0 Preview 1 #25387

Closed
kuuhakumirai opened this issue May 12, 2022 · 2 comments
Closed

NU1505 appears in 17.3.0 Preview 1 #25387

kuuhakumirai opened this issue May 12, 2022 · 2 comments

Comments

@kuuhakumirai
Copy link

kuuhakumirai commented May 12, 2022

Describe the bug

NU1505: Duplicate 'PackageDownload' items warning is raised when the SDK uses PackageDownload to get packages.
The duplicate 'PackageDownload' items are: Microsoft.NETCore.App.Host.win-x64 [6.0.3], Microsoft.NETCore.App.Host.win-x64 [6.0.3], Microsoft.NETCore.App.Host.win-x64 [6.0.3], Microsoft.NETCore.App.Host.win-x64 [6.0.3].

I run into it in 17.3.0 Preview 1, and it doesnt appear in 17.2.0 with the same project.

To Reproduce

  1. Use Microsoft.NETCore.App Version 6.0.3
  2. Update Visual Studio to 17.3.0 Preview 1
  3. The warning "warning NU1505: Duplicate 'PackageDownload' items found. Remove the duplicate items or use the Update functionality to ensure a consistent restore behavior" occurs as below screenshot.
  4. It doesnt appear in 17.2.0 with the same project.
  5. I notice that a closed issue described this symptom: NU1505: Duplicate 'PackageDownload' items warning is raised when the SDK uses PackageDownload to get packages.  #24747

They are the same project:
image
image
image

Using .NET SDK 6.0.300 I think.

Further technical details

  • Include the output of dotnet --info
  • The IDE (VS / VS Code/ VS4Mac) you're running on, and its version
@marbel82
Copy link

marbel82 commented May 13, 2022

I have a similar warning:

Warning NU1505 Duplicate 'PackageDownload' items found. Remove the duplicate items or use the Update functionality to ensure a consistent restore behavior. The duplicate 'PackageDownload' items are: Microsoft.NETCore.App.Host.win-x64 [6.0.0], Microsoft.NETCore.App.Host.win-x64 [6.0.0], Microsoft.NETCore.App.Host.win-x64 [6.0.0], Microsoft.NETCore.App.Host.win-x64 [6.0.0].

@baronfel
Copy link
Member

This is a duplicate of #24747, and I've commented more about why this is appearing and what folks can do to resolve it ahead of a proper fix here.

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