diff --git a/KitX Dashboard/Helper.cs b/KitX Dashboard/Helper.cs
index 106832e3..fcd24ec0 100644
--- a/KitX Dashboard/Helper.cs
+++ b/KitX Dashboard/Helper.cs
@@ -4,6 +4,8 @@
using FluentAvalonia.UI.Media;
using KitX_Dashboard.Data;
using LiteDB;
+using System;
+using System.Diagnostics;
using System.IO;
using System.Text.Json;
using System.Threading;
@@ -194,6 +196,33 @@ public static void InitEnvironment()
}).Start();
#endregion
}
+
+ ///
+ /// 导入插件
+ ///
+ /// .kxp Path
+ public static void ImportPlugin(string kxpPath)
+ {
+ string? workbasef = Process.GetCurrentProcess().MainModule.FileName;
+ string? workbase = string.Empty;
+ if (workbasef == null)
+ throw new Exception("Can not get path of \"KitX Dashboard.exe\"");
+ else
+ {
+ workbase = Path.GetDirectoryName(workbasef);
+ if (workbase == null)
+ throw new Exception("Can not get path of \"KitX\"");
+ }
+ if (!File.Exists(kxpPath))
+ {
+ Console.WriteLine($"No this file: {kxpPath}");
+ throw new Exception("Plugin Package Doesn't Exist.");
+ }
+ else
+ {
+
+ }
+ }
}
}
diff --git a/KitX Dashboard/KitX Dashboard.csproj b/KitX Dashboard/KitX Dashboard.csproj
index 60a52d6d..b7d190dd 100644
--- a/KitX Dashboard/KitX Dashboard.csproj
+++ b/KitX Dashboard/KitX Dashboard.csproj
@@ -37,6 +37,12 @@
+
+
+
+
+
+
@@ -55,7 +61,6 @@
-
Always
@@ -69,6 +74,26 @@
Always
+
+
+ Never
+
+
+ Never
+
+
+ Never
+
+
+ Never
+
+
+ Never
+
+
+ Never
+
+