Troubleshooting
Compilation Errors
Section titled “Compilation Errors”Cause: The build script cannot find the DevTools executable.
Solution:
- Check if the
<AnalyzerPath>path in your.csprojis correct. - Ensure you have compiled the
BetterLyrics.DevToolsproject at least once.
Runtime Errors
Section titled “Runtime Errors”Cause: You tried to run the plugin DLL manually, or Smart Trim failed.
Solution:
- This is expected behavior. The plugin should not include
BetterLyrics.Core.dllbecause the host application provides it. - Please test by loading the plugin through the Host Application.
Cause: The version of BetterLyrics.Core running in the host application is older than the version used when compiling the plugin.
Solution:
- Recompile the host application (
BetterLyrics.WinUI3) to ensure it includes the latest Core. - Check if a conflicting copy of
BetterLyrics.Core.dllexists in theLocalState/pluginsfolder.
Warning Messages
Section titled “Warning Messages”Cause: The Native AOT Trimmer stripped away system classes you are using via reflection.
Solution:
- Check the Host’s
PluginConfigsfolder. DoesMyPlugin_TrimmerRoots.xmlexist? - If it exists, recompile the Host. This configuration file acts as a whitelist for the Trimmer.