Skip to content

Commit 854bb0d

Browse files
committed
Add "SC" suffix to version number in about box for self contained deployments
1 parent abfad6a commit 854bb0d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/ParquetViewer/AboutBox.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,17 @@ namespace ParquetViewer
66
{
77
public partial class AboutBox : Form
88
{
9+
#if RELEASE_SELFCONTAINED
10+
private bool _isSelfContainedExe = true;
11+
#else
12+
private bool _isSelfContainedExe = false;
13+
#endif
914
public AboutBox()
1015
{
1116
InitializeComponent();
1217
this.Text = String.Format("About {0}", AssemblyTitle);
1318
this.labelProductName.Text = AssemblyProduct;
14-
this.labelVersion.Text = String.Format("Version {0}", AssemblyVersion);
19+
this.labelVersion.Text = String.Format("Version {0}{1}", AssemblyVersion, _isSelfContainedExe ? " SC" : string.Empty);
1520
this.labelCopyright.Text = AssemblyCopyright;
1621
this.labelCompanyName.Text = AssemblyCompany;
1722
this.textBoxDescription.Text = AssemblyDescription;

0 commit comments

Comments
 (0)