From cf87dfde62665189abd77ff3f210cfb558836b7e Mon Sep 17 00:00:00 2001 From: Pieter-Jan Briers Date: Fri, 24 Apr 2020 22:15:57 +0200 Subject: [PATCH] Don't include NJsonSchema on release builds. Saves like 200~ KiB disk space from not having to ship the unused library. --- Robust.Client/ResourceManagement/ResourceTypes/RSIResource.cs | 2 ++ Robust.Client/Robust.Client.csproj | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Robust.Client/ResourceManagement/ResourceTypes/RSIResource.cs b/Robust.Client/ResourceManagement/ResourceTypes/RSIResource.cs index bc24e4743..ec116bac5 100644 --- a/Robust.Client/ResourceManagement/ResourceTypes/RSIResource.cs +++ b/Robust.Client/ResourceManagement/ResourceTypes/RSIResource.cs @@ -12,7 +12,9 @@ using Robust.Shared.Maths; using Robust.Shared.Utility; using Newtonsoft.Json.Linq; +#if DEBUG using NJsonSchema; +#endif using SixLabors.ImageSharp; using SixLabors.ImageSharp.PixelFormats; diff --git a/Robust.Client/Robust.Client.csproj b/Robust.Client/Robust.Client.csproj index c054383ad..156eb0876 100644 --- a/Robust.Client/Robust.Client.csproj +++ b/Robust.Client/Robust.Client.csproj @@ -20,7 +20,7 @@ - + @@ -41,7 +41,7 @@ - + Robust.Client.Graphics.RSI.RSISchema.json