Testing 2025R1 with a Windows EXE build, and there’s a new (to me) 19MB file called “resources.pri” file.
What is it?
Testing 2025R1 with a Windows EXE build, and there’s a new (to me) 19MB file called “resources.pri” file.
What is it?
should be for the Xaml UI elements?
I know UWP apps include this
Oh, that makes sense.
I was hoping that using WebView2 via DesktopXAMLContainer would be quite a bit smaller (vs. using the Chromium browser).
I guess 19MB is better than XXXMB , but I wonder if all of that 19MB is needed? That’s a lot of bytes!
Ok, this is weird:
I can delete the file resources.pri
entirely, and my WebView2/DesktopXAMLContainer app runs fine!
I wonder if this file is included in the build by mistake? Or perhaps simply not needed for WebView2?
(Testing on Windows 11 / ARM)
Submitted as https://tracker.xojo.com/xojoinc/xojo/-/issues/78886
and https://tracker.xojo.com/xojoinc/xojo/-/issues/78887
Your mileage may vary on this one, but resources.pri contains all the theming assets so removing this file will likely change the look of your app or worst case cause a crash.
It’s definitely not a mistake, a good example would be to add a XAML TextBox control to see what it looks like with resources.pri available and without.