diff --git a/src/Artemis.Core/Artemis.Core.csproj b/src/Artemis.Core/Artemis.Core.csproj index 724a5a9ea..d600cf1fd 100644 --- a/src/Artemis.Core/Artemis.Core.csproj +++ b/src/Artemis.Core/Artemis.Core.csproj @@ -39,6 +39,7 @@ + diff --git a/src/Artemis.Core/Services/CoreService.cs b/src/Artemis.Core/Services/CoreService.cs index df78d2a3b..a0877da5f 100644 --- a/src/Artemis.Core/Services/CoreService.cs +++ b/src/Artemis.Core/Services/CoreService.cs @@ -12,6 +12,7 @@ using RGB.NET.Core; using Serilog; using Serilog.Events; using SkiaSharp; +using HidSharp; using Module = Artemis.Core.Modules.Module; namespace Artemis.Core.Services @@ -78,6 +79,9 @@ namespace Artemis.Core.Services AssemblyInformationalVersionAttribute? versionAttribute = typeof(CoreService).Assembly.GetCustomAttribute(); _logger.Information("Initializing Artemis Core version {version}", versionAttribute?.InformationalVersion); + // This should prevent a certain someone from removing HidSharp as an unused dependency as well + _logger.Information("Forcing plugins to use HidSharp {hidSharpVersion}", Assembly.GetAssembly(typeof(HidDevice))!.GetName().Version); + ApplyLoggingLevel(); DeserializationLogger.Initialize(Kernel); diff --git a/src/Artemis.Core/packages.lock.json b/src/Artemis.Core/packages.lock.json index 0dc3418f5..03a69fcd6 100644 --- a/src/Artemis.Core/packages.lock.json +++ b/src/Artemis.Core/packages.lock.json @@ -12,6 +12,12 @@ "System.Threading.Tasks.Extensions": "4.5.3" } }, + "HidSharp": { + "type": "Direct", + "requested": "[2.1.0, )", + "resolved": "2.1.0", + "contentHash": "UTdxWvbgp2xzT1Ajaa2va+Qi3oNHJPasYmVhbKI2VVdu1VYP6yUG+RikhsHvpD7iM0S8e8UYb5Qm/LTWxx9QAA==" + }, "Humanizer.Core": { "type": "Direct", "requested": "[2.8.26, )", diff --git a/src/Artemis.UI.Shared/packages.lock.json b/src/Artemis.UI.Shared/packages.lock.json index e0b20721e..db871839a 100644 --- a/src/Artemis.UI.Shared/packages.lock.json +++ b/src/Artemis.UI.Shared/packages.lock.json @@ -142,6 +142,11 @@ "System.Xml.XmlDocument": "4.3.0" } }, + "HidSharp": { + "type": "Transitive", + "resolved": "2.1.0", + "contentHash": "UTdxWvbgp2xzT1Ajaa2va+Qi3oNHJPasYmVhbKI2VVdu1VYP6yUG+RikhsHvpD7iM0S8e8UYb5Qm/LTWxx9QAA==" + }, "LiteDB": { "type": "Transitive", "resolved": "5.0.9", @@ -1305,6 +1310,7 @@ "dependencies": { "Artemis.Storage": "1.0.0", "Ben.Demystifier": "0.1.6", + "HidSharp": "2.1.0", "Humanizer.Core": "2.8.26", "LiteDB": "5.0.9", "McMaster.NETCore.Plugins": "1.3.1", diff --git a/src/Artemis.UI/packages.lock.json b/src/Artemis.UI/packages.lock.json index 47e2097b1..83f215a37 100644 --- a/src/Artemis.UI/packages.lock.json +++ b/src/Artemis.UI/packages.lock.json @@ -195,6 +195,11 @@ "System.Xml.XmlDocument": "4.3.0" } }, + "HidSharp": { + "type": "Transitive", + "resolved": "2.1.0", + "contentHash": "UTdxWvbgp2xzT1Ajaa2va+Qi3oNHJPasYmVhbKI2VVdu1VYP6yUG+RikhsHvpD7iM0S8e8UYb5Qm/LTWxx9QAA==" + }, "LiteDB": { "type": "Transitive", "resolved": "5.0.9", @@ -1362,6 +1367,7 @@ "dependencies": { "Artemis.Storage": "1.0.0", "Ben.Demystifier": "0.1.6", + "HidSharp": "2.1.0", "Humanizer.Core": "2.8.26", "LiteDB": "5.0.9", "McMaster.NETCore.Plugins": "1.3.1",