Replies: 7 comments
-
We've found some similar issues:
If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.
|
Beta Was this translation helpful? Give feedback.
-
I got this error but it vanish when I updated all of my nuget listed. |
Beta Was this translation helpful? Give feedback.
-
I can repro this issue at Windows platform on the latest 17.13 Preview 2.1(9.0.30), but it works fine on 8.0.100. |
Beta Was this translation helpful? Give feedback.
-
@RoiChen001 how did you reproduce this one? I don t see a repo. |
Beta Was this translation helpful? Give feedback.
-
This happens when you are using a nuget that was built with a very old maui. For example, a common nuget was the old Telerik nugets that were built against net7. The issue was WinUI was embedding the maui resources in all nugets, and then updating maui caused duplicates. I believe this was fixed at some point in WinUI and we updated maui to use the new WinUI nugets. SO a fix is typically just to make sure your nugets are up to date. |
Beta Was this translation helpful? Give feedback.
-
Is there a way to figure out which nuget package is at fault short of taking an axe to the code and cutting each package out along with the code dependent on it one at a time? |
Beta Was this translation helpful? Give feedback.
-
I think you can check in a binlog: https://github.com/dotnet/maui/wiki/Capturing-Binary-Logs There may also be a file with all the .pri files listed: I am not sure there is a way to see which pri has the duplicate xbf, but the list should be much shorter and then you can see which nuget with a pri also is a maui thing. |
Beta Was this translation helpful? Give feedback.
-
Description
Description
We are getting build errors after upgrading to .net9. Our solution is built in Azure DevOps (dotnet publish -f net9.0-windows10.0.19041.0 -c Release) and getting following errors :
WINAPPSDKGENERATEPROJECTPRIFILE : error : PRI175: 0x80073b0f - Processing Resources failed with error: Duplicate Entry.
WINAPPSDKGENERATEPROJECTPRIFILE : error : PRI277: 0x80073b0f - Conflicting values for resource 'Files/Microsoft.Maui.Controls/Compatibility/Handlers/TableView/Windows/TableViewStyles.xbf'
Fails only for Windows platform, Android and iOS are fine. Everything is fine when i run a build (also for Windows platform) in Visual Studio.
Was also fine before upgrade to .net9 when we upgraded also Microsoft.Maui.Controls.
Steps to Reproduce
Upgrade to .net9 and upgrade also Microsoft.Maui.Controls (we have 9.0.30 now) and build in Azure DevOps
This was originally posted here #26952 but that author found a workaround then closed the ticket.
Steps to Reproduce
No response
Link to public reproduction project repository
No response
Version with bug
9.0.30 SR3
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
8.0.100 SR10
Affected platforms
Windows
Affected platform versions
No response
Did you find any workaround?
No response
Relevant log output
Beta Was this translation helpful? Give feedback.
All reactions