mirror of
https://github.com/Hofknecht/SystemTrayMenu.git
synced 2024-06-01 18:19:39 +12:00
Upgrade to UWP / .NET Core 3.1 (#57)
This commit is contained in:
parent
e1e45206ea
commit
b0a7235dfb
|
@ -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")]
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue