From 2e999b6f65c26fc74713a4e1643d71ea713fc638 Mon Sep 17 00:00:00 2001 From: claudia Date: Thu, 10 Dec 2020 10:43:14 -0300 Subject: [PATCH] Consider AssemblyFileVersionAttribute for sdt classes version method. --- dotnet/src/dotnetframework/GxClasses/Core/GXApplication.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/dotnet/src/dotnetframework/GxClasses/Core/GXApplication.cs b/dotnet/src/dotnetframework/GxClasses/Core/GXApplication.cs index ed5cf564e..00965b9f3 100644 --- a/dotnet/src/dotnetframework/GxClasses/Core/GXApplication.cs +++ b/dotnet/src/dotnetframework/GxClasses/Core/GXApplication.cs @@ -1451,13 +1451,12 @@ public string ConfigSection } static public string StdClassesVersion() { - - object[] customAtts = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyInformationalVersionAttribute), true); + object[] customAtts = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyFileVersionAttribute), true); if (customAtts != null && customAtts.Length > 0) { - AssemblyInformationalVersionAttribute verAtt = customAtts[0] as AssemblyInformationalVersionAttribute; + AssemblyFileVersionAttribute verAtt = customAtts[0] as AssemblyFileVersionAttribute; if (verAtt != null) - return verAtt.InformationalVersion; + return verAtt.Version; } return Assembly.GetAssembly(typeof(GxContext)).GetName().Version.ToString(); }