Skip to content

Commit

Permalink
fix: 关于页面版本号显示有误的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
a2633063 committed Jun 5, 2023
1 parent ae565a2 commit 3f04944
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion ZUART/FrmAbout.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using System.Data;
using System.Drawing;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Windows.Forms;

Expand All @@ -14,7 +15,8 @@ public partial class FrmAbout : Form
public FrmAbout()
{
InitializeComponent();
groupBoxAbout.Text = "当前版本:" + System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString();
groupBoxAbout.Text = "当前版本:" + System.Diagnostics.FileVersionInfo.GetVersionInfo(Assembly.GetEntryAssembly().Location).FileVersion;
//groupBoxAbout.Text = "当前版本:" + System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString();
}

private void btnClose_Click(object sender, EventArgs e)
Expand Down
2 changes: 1 addition & 1 deletion ZUART/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@
// 方法是按如下所示使用“*”:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.1.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.1.0.1")]
Binary file modified ZUART/bin/Release/ZUART.exe
Binary file not shown.

0 comments on commit 3f04944

Please sign in to comment.