From 448cc273ec45f8883f76e4953730345865105d12 Mon Sep 17 00:00:00 2001 From: Neil Dorin Date: Thu, 23 May 2024 14:42:31 -0600 Subject: [PATCH] feat: Adds PepperDashCoreAssembly --- src/PepperDash.Essentials.Core/Plugins/PluginLoader.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/PepperDash.Essentials.Core/Plugins/PluginLoader.cs b/src/PepperDash.Essentials.Core/Plugins/PluginLoader.cs index 3b70b112..b8db5452 100644 --- a/src/PepperDash.Essentials.Core/Plugins/PluginLoader.cs +++ b/src/PepperDash.Essentials.Core/Plugins/PluginLoader.cs @@ -29,6 +29,8 @@ public static class PluginLoader public static LoadedAssembly EssentialsAssembly { get; private set; } + public static LoadedAssembly PepperDashCoreAssembly { get; private set; } + public static List EssentialsPluginAssemblies { get; private set; } /// @@ -89,7 +91,8 @@ public static void AddProgramAssemblies() } case ("PepperDash_Core.dll"): { - version = PepperDash.Core.Debug.PepperDashCoreVersion; + version = GetAssemblyVersion(assembly); + PepperDashCoreAssembly = new LoadedAssembly(fi.Name, version, assembly); break; } } @@ -197,6 +200,7 @@ public static bool CheckIfAssemblyLoaded(string name) public static void ReportAssemblyVersions(string command) { CrestronConsole.ConsoleCommandResponse("Essentials Version: {0}" + CrestronEnvironment.NewLine, Global.AssemblyVersion); + CrestronConsole.ConsoleCommandResponse("PepperDash_Core Version: {0}" + CrestronEnvironment.NewLine, PepperDashCoreAssembly.Version); CrestronConsole.ConsoleCommandResponse("Essentials Plugin Versions:" + CrestronEnvironment.NewLine); foreach (var assembly in EssentialsPluginAssemblies) {