fix: use effective version in changelog (#947)

This commit is contained in:
Aireil 2022-08-01 16:24:23 +02:00 committed by GitHub
parent edbe21d2b8
commit a3a9f9e624
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,10 +21,7 @@ namespace Dalamud.Interface.Internal.Windows.PluginInstaller
if (plugin.Manifest.Changelog.IsNullOrEmpty())
throw new ArgumentException("Manifest has no changelog.");
var version = plugin.AssemblyName?.Version;
version ??= plugin.Manifest.Testing
? plugin.Manifest.TestingAssemblyVersion
: plugin.Manifest.AssemblyVersion;
var version = plugin.Manifest.EffectiveVersion;
this.Version = version!.ToString();
}