mirror of
https://github.com/Hofknecht/SystemTrayMenu.git
synced 2024-09-30 09:06:32 +13:00
Fix crash on opening About's details, version 0.9.2.31
This commit is contained in:
parent
1cb0aaaa49
commit
f31afbda39
2 changed files with 8 additions and 5 deletions
|
@ -35,5 +35,5 @@ using System.Runtime.InteropServices;
|
||||||
// You can specify all the values or you can default the Build and Revision Numbers
|
// You can specify all the values or you can default the Build and Revision Numbers
|
||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
[assembly: AssemblyVersion("0.9.2.29")]
|
[assembly: AssemblyVersion("0.9.2.31")]
|
||||||
[assembly: AssemblyFileVersion("0.9.2.29")]
|
[assembly: AssemblyFileVersion("0.9.2.31")]
|
||||||
|
|
|
@ -192,9 +192,12 @@ namespace SystemTrayMenu.UserInterface
|
||||||
private static DateTime AssemblyLastWriteTime(Assembly a)
|
private static DateTime AssemblyLastWriteTime(Assembly a)
|
||||||
{
|
{
|
||||||
DateTime assemblyLastWriteTime = DateTime.MaxValue;
|
DateTime assemblyLastWriteTime = DateTime.MaxValue;
|
||||||
if (!string.IsNullOrEmpty(a.Location))
|
if (!a.IsDynamic) // Location property not available for dynamic assemblies
|
||||||
{
|
{
|
||||||
assemblyLastWriteTime = File.GetLastWriteTime(a.Location);
|
if (!string.IsNullOrEmpty(a.Location))
|
||||||
|
{
|
||||||
|
assemblyLastWriteTime = File.GetLastWriteTime(a.Location);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return assemblyLastWriteTime;
|
return assemblyLastWriteTime;
|
||||||
|
|
Loading…
Reference in a new issue