diff --git a/src/Artemis.Core/Artemis.Core.csproj b/src/Artemis.Core/Artemis.Core.csproj index a7ec57544..0499f1427 100644 --- a/src/Artemis.Core/Artemis.Core.csproj +++ b/src/Artemis.Core/Artemis.Core.csproj @@ -13,6 +13,11 @@ 1 + + + + + diff --git a/src/Artemis.Core/Constants.cs b/src/Artemis.Core/Constants.cs index e57b947e4..f465f118e 100644 --- a/src/Artemis.Core/Constants.cs +++ b/src/Artemis.Core/Constants.cs @@ -2,6 +2,7 @@ using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.IO; +using System.Linq; using System.Reflection; using Artemis.Core.JsonConverters; using Artemis.Core.Services; @@ -61,7 +62,8 @@ public static class Constants /// /// The current API version for plugins /// - public static readonly int PluginApiVersion = CoreAssembly.GetName().Version.Major; + public static readonly int PluginApiVersion = int.Parse(CoreAssembly.GetCustomAttributes() + .First(a => a.Key == "PluginApiVersion").Value); /// /// The plugin info used by core components of Artemis