diff --git a/MSAddinTest/Core/Loader/PluginAssemblyLoader.cs b/MSAddinTest/Core/Loader/PluginAssemblyLoader.cs
index b80036e..bc42fcb 100644
--- a/MSAddinTest/Core/Loader/PluginAssemblyLoader.cs
+++ b/MSAddinTest/Core/Loader/PluginAssemblyLoader.cs
@@ -66,7 +66,7 @@ public FuncResult LoadAssembly()
// _lastFileHash = newFileHash;
// 执行卸载逻辑
- _msAddins.ForEach(x => x.Unloaded());
+ _msAddins.ForEach(x => x.Unloaded(new AddIn.UnloadedEventArgs(AddIn.UnloadReasons.ExitByOtherApp)));
_msAddins.Clear();
// 读取文件然后加载
diff --git a/MSAddinTest/MSAddinTest.csproj b/MSAddinTest/MSAddinTest.csproj
index a3f6f96..d66ab0b 100644
--- a/MSAddinTest/MSAddinTest.csproj
+++ b/MSAddinTest/MSAddinTest.csproj
@@ -59,6 +59,7 @@
False
$(Microstation)\Bentley.DgnPlatformNET.dll
+ False
False
diff --git a/MSAddinTest/MSTestInterface/MSTest_Addin.cs b/MSAddinTest/MSTestInterface/MSTest_Addin.cs
index 5df8113..5bf954c 100644
--- a/MSAddinTest/MSTestInterface/MSTest_Addin.cs
+++ b/MSAddinTest/MSTestInterface/MSTest_Addin.cs
@@ -4,6 +4,7 @@
using System.Linq;
using System.Text;
using System.Threading.Tasks;
+using static Bentley.MstnPlatformNET.AddIn;
namespace MSAddinTest.MSTestInterface
{
@@ -24,9 +25,10 @@ public virtual void Init(AddIn addIn)
protected abstract int Run(string[] commandLine);
///
- /// 卸载后手动清除向 Addin 中添加的一些事件
+ /// 卸载后手动清除向 Addin 中注册的一些事件
///
- public virtual void Unloaded() { }
+ public virtual void Unloaded(UnloadedEventArgs eventArgs) { }
+
///
/// 隐式转换成 addin
diff --git a/MSAddinTest/Properties/AssemblyInfo.cs b/MSAddinTest/Properties/AssemblyInfo.cs
index db1ca3b..b64765d 100644
--- a/MSAddinTest/Properties/AssemblyInfo.cs
+++ b/MSAddinTest/Properties/AssemblyInfo.cs
@@ -51,5 +51,5 @@
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
//通过使用 "*",如下所示:
// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.1")]
-[assembly: AssemblyFileVersion("1.0.1")]
+[assembly: AssemblyVersion("1.0.2")]
+[assembly: AssemblyFileVersion("1.0.2")]
diff --git a/Readme.md b/Readme.md
index a362aaf..a8c4699 100644
--- a/Readme.md
+++ b/Readme.md
@@ -76,7 +76,7 @@ internal class PluginAddin : MSTest_Addin
}
// 在这个方法中释放资源
- public override void Unloaded()
+ public override void Unloaded(UnloadedEventArgs eventArgs)
{
// 当插件重载时,可以在此处卸载上一次加载的事件
}