This commit is contained in:
huiyadanli 2019-07-22 22:04:48 +08:00
parent 72d7e7ec70
commit 2386073602
2 changed files with 9 additions and 2 deletions

View File

@ -18,6 +18,13 @@ namespace RevokeMsgPatcher
patcher.IntallPath = txtPath.Text; patcher.IntallPath = txtPath.Text;
btnRestore.Enabled = File.Exists(patcher.BakPath); btnRestore.Enabled = File.Exists(patcher.BakPath);
} }
// 标题加上版本号
string currentVersion = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString();
if (currentVersion.Length > 3)
{
currentVersion = " v" + currentVersion.Substring(0, 3);
}
this.Text += currentVersion;
} }
private void btnPatch_Click(object sender, EventArgs e) private void btnPatch_Click(object sender, EventArgs e)

View File

@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号 // 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号
// 方法是按如下所示使用“*”: : // 方法是按如下所示使用“*”: :
//[assembly: AssemblyVersion("1.0.*")] //[assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyVersion("0.1")]
[assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyFileVersion("0.1")]