We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 906eb83 commit 317f332Copy full SHA for 317f332
RabbitMQ.Stream.Client/Version.cs
@@ -2,7 +2,6 @@
2
// 2.0, and the Mozilla Public License, version 2.0.
3
// Copyright (c) 2017-2023 Broadcom. All Rights Reserved. The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
4
5
-using System.Diagnostics;
6
using System.Reflection;
7
8
namespace RabbitMQ.Stream.Client
@@ -11,9 +10,8 @@ public static class Version
11
10
{
12
static Version()
13
14
- var a = Assembly.GetAssembly(typeof(Version));
15
- var fvi = FileVersionInfo.GetVersionInfo(a.Location);
16
- VersionString = fvi.ProductVersion;
+ var attr = typeof(Version).Assembly.GetCustomAttribute<AssemblyInformationalVersionAttribute>();
+ VersionString = attr?.InformationalVersion;
17
}
18
19
public static string VersionString { get; }
0 commit comments