Skip to content

Commit c1cf752

Browse files
committed
wrong version was showing in about dialog
1 parent 335ebfd commit c1cf752

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

GabNetStats/AboutForm.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ private void OnClick(object sender, LinkLabelLinkClickedEventArgs e)
4444

4545
private void AboutForm_Load(object sender, EventArgs e)
4646
{
47-
label1.Text = "GabNetStats v" + Application.ProductVersion;
47+
label1.Text = "GabNetStats v" + System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString();
4848
}
4949
}
5050
}

GabNetStats/GabNetStats.csproj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -447,8 +447,9 @@
447447
<AssemblyTitle>GabNetStats</AssemblyTitle>
448448
<BaseOutputPath>bin\</BaseOutputPath>
449449
<Nullable>disable</Nullable>
450-
<AssemblyVersion>1.1.1.17</AssemblyVersion>
451-
<FileVersion>1.1.1.17</FileVersion>
450+
<AssemblyVersion>1.1.1.18</AssemblyVersion>
451+
<FileVersion>1.1.1.18</FileVersion>
452+
<Version>1.1.1.18</Version>
452453
</PropertyGroup>
453454
<Target Name="PreBuild" BeforeTargets="PreBuildEvent">
454455
<Exec Command="echo Configuration: $(Configuration)&#xD;&#xA;echo DevEnvDir: $(DevEnvDir)&#xD;&#xA;echo OutDir: $(OutDir)&#xD;&#xA;echo ProjectDir: $(ProjectDir)&#xD;&#xA;echo VisualStudioVersion: $(VisualStudioVersion)&#xD;&#xA;echo AssemblySearchPaths: $(AssemblySearchPaths)&#xD;&#xA;echo AssemblyName: $(AssemblyName)&#xD;&#xA;echo BaseIntermediateOutputPath: $(BaseIntermediateOutputPath)&#xD;&#xA;echo CscToolPath: $(CscToolPath)&#xD;&#xA;echo MSBuildProjectDirectory: $(MSBuildProjectDirectory)&#xD;&#xA;del /F &quot;$(OutDir)\License.*.txt&quot;" />

0 commit comments

Comments
 (0)