From f31afbda39f40cab20e61211565797b3ee479ca1 Mon Sep 17 00:00:00 2001 From: Peter Kirmeier Date: Thu, 21 May 2020 12:52:10 +0200 Subject: [PATCH] Fix crash on opening About's details, version 0.9.2.31 --- Properties/AssemblyInfo.cs | 4 ++-- UserInterface/AboutBox.cs | 9 ++++++--- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs index 73711f4..5c6cf9c 100644 --- a/Properties/AssemblyInfo.cs +++ b/Properties/AssemblyInfo.cs @@ -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.9.2.29")] -[assembly: AssemblyFileVersion("0.9.2.29")] +[assembly: AssemblyVersion("0.9.2.31")] +[assembly: AssemblyFileVersion("0.9.2.31")] diff --git a/UserInterface/AboutBox.cs b/UserInterface/AboutBox.cs index 32555fc..eca399f 100644 --- a/UserInterface/AboutBox.cs +++ b/UserInterface/AboutBox.cs @@ -192,9 +192,12 @@ namespace SystemTrayMenu.UserInterface private static DateTime AssemblyLastWriteTime(Assembly a) { DateTime assemblyLastWriteTime = DateTime.MaxValue; - if (!string.IsNullOrEmpty(a.Location)) - { - assemblyLastWriteTime = File.GetLastWriteTime(a.Location); + if (!a.IsDynamic) // Location property not available for dynamic assemblies + { + if (!string.IsNullOrEmpty(a.Location)) + { + assemblyLastWriteTime = File.GetLastWriteTime(a.Location); + } } return assemblyLastWriteTime;