benruehl / adonis-ui

Lightweight UI toolkit for WPF applications offering classic but enhanced windows visuals
https://benruehl.github.io/adonis-ui/
MIT License
1.71k stars 143 forks source link

Fix uncaught exeption when app is started from different directory #64

Closed benruehl closed 4 years ago

benruehl commented 4 years ago

Assembly.GetEntryAssembly()?.ManifestModule.Name returns the executable's name only (e.g AdonisUI.Demo.exe) whereas Assembly.GetEntryAssembly()?.ManifestModule.FullyQualifiedName returns the full path (e.g C:\AdonisUI.Demo.exe).

This is important for cases where the application is started via CLI from a different directory. The full path is required here in order to resolve the assembly the icon is extracted from.

Fixes #63