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

Compile fails with NU1504 #6647

Closed
batzen opened this issue Jun 4, 2022 · 4 comments
Closed

Compile fails with NU1504 #6647

batzen opened this issue Jun 4, 2022 · 4 comments
Assignees

Comments

@batzen
Copy link
Contributor

batzen commented Jun 4, 2022

Trying to use build.cmd -c Release causes NU1504 after a clean checkout of main.

C:\DEV\OSS_Own\dotnet\wpf\src\Microsoft.DotNet.Wpf\src\PresentationUI\PresentationUI.csproj : error NU1504: Duplicate '
PackageReference' items found. Remove the duplicate items or use the Update functionality to ensure a consistent restor
e behavior. The duplicate 'PackageReference' items are: Microsoft.Private.Winforms 7.0.0-preview.6.22303.2, Microsoft.P
rivate.Winforms 7.0.0-preview.6.22303.2.
C:\DEV\OSS_Own\dotnet\wpf\src\Microsoft.DotNet.Wpf\src\PresentationUI\PresentationUI.csproj : error NU1504: Duplicate '
PackageReference' items found. Remove the duplicate items or use the Update functionality to ensure a consistent restor
e behavior. The duplicate 'PackageReference' items are: Microsoft.Private.Winforms 7.0.0-preview.6.22303.2, Microsoft.P
rivate.Winforms 7.0.0-preview.6.22303.2.
C:\DEV\OSS_Own\dotnet\wpf\artifacts\obj\DirectWriteForwarder\Release\net7.0\CppCliSupport\CppClrSupport_DirectWriteForw
arder.csproj : error NU1504: Duplicate 'PackageReference' items found. Remove the duplicate items or use the Update fun
ctionality to ensure a consistent restore behavior. The duplicate 'PackageReference' items are: Microsoft.NETCore.Platf
orms 7.0.0-preview.6.22302.9, Microsoft.NETCore.Platforms 7.0.0-preview.6.22302.9.
C:\DEV\OSS_Own\dotnet\wpf\src\Microsoft.DotNet.Wpf\src\PresentationUI\PresentationUI.csproj : error NU1504: Duplicate '
PackageReference' items found. Remove the duplicate items or use the Update functionality to ensure a consistent restor
e behavior. The duplicate 'PackageReference' items are: Microsoft.Private.Winforms 7.0.0-preview.6.22303.2, Microsoft.P
rivate.Winforms 7.0.0-preview.6.22303.2.
C:\DEV\OSS_Own\dotnet\wpf\artifacts\obj\System.Printing\Release\net7.0\CppCliSupport\CppClrSupport_System.Printing.cspr
oj : 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.NETCore.Platforms 7.0.0
-preview.6.22302.9, Microsoft.NETCore.Platforms 7.0.0-preview.6.22302.9.
    0 Warning(s)
    5 Error(s)
@ThomasGoulet73
Copy link
Contributor

@batzen I opened #6648 which fixes part of this issue (Build error for PresentationUI), I'm looking at the other build errors which looks like it affects C++/CLI projects.

@dipeshmsft dipeshmsft added Investigate Requires further investigation by the WPF team. and removed Untriaged Requires WPF team triage labels Jun 6, 2022
@dipeshmsft dipeshmsft self-assigned this Jun 6, 2022
@dipeshmsft
Copy link
Member

@ThomasGoulet73, we have started looking at this failure and preparing a fix for it.

@dipeshmsft
Copy link
Member

Added a PR #6698 that fixes the rest of the issues in the C++/CLI project.

@dipeshmsft dipeshmsft removed the Investigate Requires further investigation by the WPF team. label Jun 20, 2022
@dipeshmsft
Copy link
Member

Closing this issue as the PRs fixing the issue are merged.

@ghost ghost locked as resolved and limited conversation to collaborators Aug 3, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants