Skip to content

Commit 1cd4535

Browse files
Consider AssemblyFileVersionAttribute for sdt classes version method. (#273)
Co-authored-by: claudia <[email protected]> (cherry picked from commit 572165e)
1 parent 33787e0 commit 1cd4535

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

dotnet/src/dotnetframework/GxClasses/Core/GXApplication.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1451,13 +1451,12 @@ public string ConfigSection
14511451
}
14521452
static public string StdClassesVersion()
14531453
{
1454-
1455-
object[] customAtts = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyInformationalVersionAttribute), true);
1454+
object[] customAtts = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyFileVersionAttribute), true);
14561455
if (customAtts != null && customAtts.Length > 0)
14571456
{
1458-
AssemblyInformationalVersionAttribute verAtt = customAtts[0] as AssemblyInformationalVersionAttribute;
1457+
AssemblyFileVersionAttribute verAtt = customAtts[0] as AssemblyFileVersionAttribute;
14591458
if (verAtt != null)
1460-
return verAtt.InformationalVersion;
1459+
return verAtt.Version;
14611460
}
14621461
return Assembly.GetAssembly(typeof(GxContext)).GetName().Version.ToString();
14631462
}

0 commit comments

Comments
 (0)