-
Notifications
You must be signed in to change notification settings - Fork 710
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
WinUI3 Preview 3 package misses globbing pattern for PRIResource #3648
Comments
@huoyaoyuan Thanks for the heads up. In my case, I found that the |
Interesting, I'm not aware of anything that would have changed here. @rohanp-msft, do you know if this is due to using the new PRI gen tooling? |
looking now |
@huoyaoyuan Hi Huo, what kind of winui3 project is this? Examples are below: |
@rohanp-msft C# desktop, packaged. The project was manually updated from preview 2, which didn't request adding entry. |
@stevenbrix For C# desktop, packaged apps, no, the new PRI gen tooling didn't introduce the need to do this. (The reason I asked about the type of project is that for class lib projects, I noticed that, both with winui 2 and 3, string resources don't make it into the class lib's PRI. That's what I'm working on figuring out now.) |
@rohanp-msft I mistyped it. I was using C# classlib. |
@huoyaoyuan Huo, that's something I've seen before. I tried to repro it today but couldn't. Here's the issue where I recorded my repro attempt: microsoft/WindowsAppSDK#246 |
@rohanp-msft Adding a resw using Visual Studio dialog adds |
@huoyaoyuan Was that line present in the project file before you upgraded to WinUI 3.0 from WinUI 2.0? Did it go away after the upgrade? |
@rohanp-msft I upgraded from WinUI 3 Preview 2. Preview 2 didn't require the line. I did the upgrade manually. |
OK, thanks for the info, @huoyaoyuan. I'll try to repro that (creating a new WinUI 3 Preview 3 project works for me, but if I try upgrading to it, perhaps it won't). |
@huoyaoyuan Would you please share the pre-migration project file? Or point me to it? |
I had a similar problem. In addition to adding the globbing pattern in a PRIResource tag, I had to go to each of the various .resw files in my project and verify that the build action was set to PRIResource. Even though all of the .resw files were added to the project in the same manner (by copying them into the project directory using FIle Explorer) some of them had the PRIResource build action while others did not. Comment: at first, I accidentally (and incorrectlyi) used a path such as
This caused massive problems including for example extremely long time to just Clean the solution. |
@huoyaoyuan this should be fixed by RTM. |
Preview 4 behaves the same with Preview 3. Waiting for it. |
@JeanRoca It's still missing in Reunion 0.5. |
Hi @huoyaoyuan, |
Solved in 0.8 stable. |
Issues I've met when upgrading a functioning project from preview2 to preview3:
Can't find ResourceMap:
#3620 (comment)
/cc @roxk
Cause:
The preview 3 nuget package doesn't include a glob pattern for
PRIResource
, while preview 2.Workaround:
Add this to your project file:
### XamlParseException
Wrapped by
XamlParseException
.Currently no idea. Investigating.
Edit: this one should be unrelated.
The text was updated successfully, but these errors were encountered: