Commit 9b0227fa authored by 潘栩锋's avatar 潘栩锋 🚴

安装包 添加 异常信息

parent 1352f2db
......@@ -13,6 +13,16 @@ namespace Install
/// </summary>
public partial class App : Application
{
public App()
{
AppDomain.CurrentDomain.UnhandledException += (s, e) =>
{
MessageBox.Show("程序出现异常,请把下面信息拍照发给厂家" + Environment.NewLine + e.ExceptionObject.ToString(),
"异常,联系厂家",
MessageBoxButton.OK, MessageBoxImage.Error);
};
}
public static T Resolve<T>()
{
return (T)App.Current.Properties[typeof(T).FullName];
......
......@@ -12,7 +12,7 @@ using System.Windows;
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("佛山市枫莱尔自动化有限公司")]
[assembly: AssemblyProduct("FLY系列软件安装向导")]
[assembly: AssemblyCopyright("Copyright © 2021 flyautomation")]
[assembly: AssemblyCopyright("Copyright © 2022 flyautomation")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
......@@ -51,6 +51,6 @@ using System.Windows;
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
//通过使用 "*",如下所示:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("4.0.1")]
[assembly: AssemblyFileVersion("4.0.1")]
[assembly: AssemblyVersion("4.0.2")]
[assembly: AssemblyFileVersion("4.0.2")]
[assembly: Guid("AB127AC6-16C6-411F-8892-D90413A863C8")]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment