Fixed program title by using entry assembly instead of executing assembly for app config data.

This commit is contained in:
Damian Büchel 2020-05-19 14:32:39 +02:00
parent 9ec8130a8a
commit 60731e01a8

View file

@ -34,7 +34,7 @@ namespace SafeExamBrowser.Configuration.ConfigurationData
internal AppConfig InitializeAppConfig()
{
var executable = Assembly.GetExecutingAssembly();
var executable = Assembly.GetEntryAssembly();
var certificate = executable.Modules.First().GetSignerCertificate();
var programBuild = FileVersionInfo.GetVersionInfo(executable.Location).FileVersion;
var programCopyright = executable.GetCustomAttribute<AssemblyCopyrightAttribute>().Copyright;