We have a .NET Core application which only will be used in-house. We changed from Click-Once to MSIX during our switch from WPF to .NET Core. In the window caption/title of our application we also "output" the current version (major, minor, ...). Previously, we took the version of our startup project (called "view"). Now using MSIX, this project has got the version number we need (the startup project is referenced to "view"). How can we read the correct version now?
Using Assembly.GetEntryAssembly
or Assembly.GetCallingAssembly
returns the wrong version - the version of the startup project. The application is not in the Windows Store, it will be side loaded as a package. Any ideas to get the "correct" version we "produce" when deploying our package?