Closed Rwing closed 1 year ago
My "Psychic debugging' tells me that probably NetSparkle is using some reflection and does not handle it well (most probably by swallowing an exception) when it is not present.
I'd suggest to add a rd.xml file, which enables reflection over all NetSparkle types, and see if this helps. If you do not know what "rd.xml" file is, check this article
Unfortunately, not knowing anything about this library, I can't help much more.
Thank you very much, everything works fine after I added the rd.xml file, that's great! I think I need to learn more about rd.xml file and nativeaot.
Sorry to bother you, but I'm really stuck and don't know what to do. Can you please help me?
I have introduced a third-party library 'NetSparkle' based on your demo. This library has a built-in UI window that displays some information. However when I publish to NativeAot, some items on this window will display abnormally. Everything seems normal in Debug mode, as below.
Steps to reproduce
add some code in MainWindow.axaml.cs
The UI source code is here
screenshot of correct result
screenshot of incorrect result