Skip to content

Commit

Permalink
检查升级提示加上升级内容
Browse files Browse the repository at this point in the history
  • Loading branch information
chenxuuu committed Jun 27, 2019
1 parent e6b917f commit 2df80b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion llcom/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ private void Window_Loaded(object sender, RoutedEventArgs e)
if(int.Parse(((string)jo["tag_name"]).Replace(".", "")) >
int.Parse(System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString().Replace(".","")))
{
var result = MessageBox.Show($"发现新版本{(string)jo["tag_name"]},是否前往官网进行更新?",
var result = MessageBox.Show($"发现新版本{(string)jo["tag_name"]},是否前往官网进行更新?\r\n" +
$"更新内容:{(string)jo["body"]}",
"更新检查",
MessageBoxButton.YesNo);
if(result == MessageBoxResult.Yes)
Expand Down
4 changes: 2 additions & 2 deletions llcom/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
//通过使用 "*",如下所示:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.5")]
[assembly: AssemblyFileVersion("1.0.0.5")]
[assembly: AssemblyVersion("1.0.0.6")]
[assembly: AssemblyFileVersion("1.0.0.6")]
[assembly: NeutralResourcesLanguage("zh-CN")]

0 comments on commit 2df80b8

Please sign in to comment.