Don't display SourceRevisionId in titles

https://learn.microsoft.com/en-us/dotnet/core/compatibility/sdk/8.0/source-link
This commit is contained in:
VaDiM
2023-11-21 00:31:09 +03:00
parent d572bd0e64
commit b27482e22b
2 changed files with 13 additions and 7 deletions

View File

@ -10,13 +10,15 @@ namespace AssetStudioGUI
public AboutForm()
{
InitializeComponent();
var productName = Application.ProductName;
var arch = Environment.Is64BitProcess ? "x64" : "x32";
var appAssembly = typeof(Program).Assembly.GetName();
var productName = appAssembly.Name;
var productVer = appAssembly.Version.ToString();
Text += " " + productName;
productTitleLabel.Text = productName;
productVersionLabel.Text = $"v{Application.ProductVersion} [{arch}]";
productVersionLabel.Text = $"v{productVer} [{arch}]";
productNamelabel.Text = productName;
modVersionLabel.Text = Application.ProductVersion;
modVersionLabel.Text = productVer;
licenseRichTextBox.Text = GetLicenseText();
}