Upgrade to UWP / .NET Core 3.1 (#57)

This commit is contained in:
Markus Hofknecht 2020-06-06 00:59:01 +02:00
parent e1e45206ea
commit b0a7235dfb
2 changed files with 12 additions and 4 deletions

View file

@ -35,5 +35,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.10.2.0")]
[assembly: AssemblyFileVersion("0.10.2.0")]
[assembly: AssemblyVersion("0.10.2.1")]
[assembly: AssemblyFileVersion("0.10.2.1")]

View file

@ -15,8 +15,16 @@ namespace SystemTrayMenu.Utilities
BeforeRestarting?.Invoke();
Log.Info($"Restart by '{reason}'");
Log.Close();
Process.Start(Assembly.GetExecutingAssembly().
ManifestModule.FullyQualifiedName);
using (Process p = new Process())
{
string fileName = Assembly.GetExecutingAssembly().
ManifestModule.FullyQualifiedName.Replace(
"SystemTrayMenu.dll", "SystemTrayMenu.exe",
StringComparison.OrdinalIgnoreCase);
p.StartInfo = new ProcessStartInfo(fileName);
p.Start();
};
Application.Exit();
}