Skip to content

Commit

Permalink
Merge pull request #22 from dynamicweb/dbe/Fix-for-unique-cache-key
Browse files Browse the repository at this point in the history
Fix null ref exception when assembly location is null
  • Loading branch information
DWDBE authored Jun 20, 2024
2 parents ac5cc3f + e71f3cb commit cf19a3c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ public static class Constants
internal static readonly int MinPingInterval = 30;
internal static readonly int DefaultPingInterval = 60;
internal static readonly int DefaultConnectionTimeout = 30;

internal static readonly string AssemblyVersion = System.Diagnostics.FileVersionInfo.GetVersionInfo(Assembly.GetExecutingAssembly().Location).ProductVersion;
internal static readonly string AssemblyVersion = Assembly.GetExecutingAssembly()?.GetCustomAttribute<AssemblyInformationalVersionAttribute>()?.InformationalVersion ?? "";

/// <summary>
/// Nested class with cache configuration constants.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Version>10.4.2</Version>
<Version>10.4.3</Version>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
<Title>Live Integration</Title>
<Description>Live Integration</Description>
Expand Down

0 comments on commit cf19a3c

Please sign in to comment.