Core - Moved PluginApi version to the csproj

This commit is contained in:
Diogo Trindade authored and RobertBeekman committed 2022-09-30 20:45:40 +02:00
1 parent f0a4a9a267
commit 4272d62001
3 files changed
+30 -2

No files matched your search

+2
View File
@@ -2,6 +2,7 @@
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using Artemis.Core.JsonConverters;
using Newtonsoft.Json;
namespace Artemis.Core;
@@ -158,6 +159,7 @@ public class PluginInfo : CorePropertyChanged, IPrerequisitesSubject
/// Gets the API version the plugin was built for
/// </summary>
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Populate)]
[JsonConverter(typeof(ForgivingVersionConverter))]
public Version? Api
{
get => _api;