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

Duplicate 'PackageReference' items found error when building in source-build #835

Closed
MichaelSimons opened this issue Jul 6, 2022 · 0 comments · Fixed by #836
Closed

Comments

@MichaelSimons
Copy link
Member

The following error occurs when building sourcelink in source-build with the latest toolset

sourcelink/artifacts/source-build/self/src/src/Microsoft.Build.Tasks.Tfvc/Microsoft.Build.Tasks.Tfvc.csproj : error NU1504: Duplicate 'PackageReference' items found. Remove the duplicate items or use the Update functionality to ensure a consistent restore behavior. The duplicate 'PackageReference' items are: Microsoft.Build 17.3.0-preview-22330-01, Microsoft.Build 17.3.0-preview-22330-01; Microsoft.Build.Tasks.Core 16.7.0, Microsoft.Build.Tasks.Core 16.7.0.

By looking at [Microsoft.Build.Tasks.Tfvc.csproj](https://github.com/dotnet/sourcelink/blob/main/src/Microsoft.Build.Tasks.Tfvc/Microsoft.Build.Tasks.Tfvc.csproj), you can clearly see the Microsoft.Build and Microsoft.Build.Tasks.Core PackageReferences are duplicated.

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

Successfully merging a pull request may close this issue.

1 participant