PRI error when running in WinUI Desktop application #1497
-
Below PRI errors occurred when i try to build the WinUI application and my application has library project A with custom control libraries which referred as NuGet in library projects. Library project A -> Referred as Nuget B and Nuget C. When i try to build the app with this nuget PRI errors occurred. Currently this can be resolved by repacking Nuget once again and resolved. Can you please tell why these errors are occurred and how to resolve? this?
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Hey @axelandrejs, can you look into this PRI build error? |
Beta Was this translation helpful? Give feedback.
-
The error message is currently unhelpful. This is something we are planning to improve. In terms of duplicated entry, this means that you have two resource candidates for the exact same language or scale. EG, if you have a resource ms-resource://foo, and you have two entries in an en-us resw file you'd get this error. Sadly it is hard to diagnose this with the information given. If you can share a standalone repro project we can take a look. Otherwise, eliminating things until the error goes away is often the best way to track this down. |
Beta Was this translation helpful? Give feedback.
-
Turns out that CommuniytToolkit.Maui was including Maui PRI data.
Get Outlook for Android<https://aka.ms/ghei36>
…________________________________
From: Axel Andrejs ***@***.***>
Sent: Tuesday, January 25, 2022 4:35:03 PM
To: microsoft/WindowsAppSDK ***@***.***>
Cc: Gary Lewis ***@***.***>; Comment ***@***.***>
Subject: Re: [microsoft/WindowsAppSDK] PRI error when running in WinUI Desktop application (Discussion #1497)
What this means is that either you or more likely one of your dependencies brings in the same asset multiple times.
Assets are usually either images, or strings contained in .resw files. The files are usually marked by the language or scale they are for. Eg, en-us\foo.resw. I would look at the intermediate output, where the build process puts everything together and see if there is duplication. Eg, you can have the language encoded in the folder as I showed or in the filename itself.
Sadly this is mostly a manual exercise. There isn't really a good way to know which artifact is the duplicated one.
—
Reply to this email directly, view it on GitHub<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FWindowsAppSDK%2Fdiscussions%2F1497%23discussioncomment-2047232&data=04%7C01%7C%7Ca0710db4631b470076d008d9e063b1b6%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637787541048565976%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=apv5H5bxaBIMTazKWxDHwW9TtJPm4h6ZV6I2qI%2FYelY%3D&reserved=0>, or unsubscribe<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FADFAH7HZ63NDF7JUT4TDRDLUX46TPANCNFSM5E5GUYNA&data=04%7C01%7C%7Ca0710db4631b470076d008d9e063b1b6%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637787541048575940%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=R1tvw4qKkxHc0oZyj2%2FK04cDHPUs9g5zxRHSMIDdZew%3D&reserved=0>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
The error message is currently unhelpful. This is something we are planning to improve.
In terms of duplicated entry, this means that you have two resource candidates for the exact same language or scale. EG, if you have a resource ms-resource://foo, and you have two entries in an en-us resw file you'd get this error.
Sadly it is hard to diagnose this with the information given. If you can share a standalone repro project we can take a look. Otherwise, eliminating things until the error goes away is often the best way to track this down.