From 5d9491317ca4283a0ef75c90d78c135f80ff0157 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Kruse?= Date: Wed, 23 Aug 2017 19:53:11 +0200 Subject: [PATCH] Fix 'IncludeInProject' not being serialized when set to false (#325) Fixes #271 and fixes #315 --- src/WebCompiler/Config/Config.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/WebCompiler/Config/Config.cs b/src/WebCompiler/Config/Config.cs index 2adfae1d..c2465e23 100644 --- a/src/WebCompiler/Config/Config.cs +++ b/src/WebCompiler/Config/Config.cs @@ -1,4 +1,5 @@ using System.Collections.Generic; +using System.ComponentModel; using System.IO; using System.Linq; using Newtonsoft.Json; @@ -37,6 +38,7 @@ public class Config /// /// If true it makes Visual Studio include the output file in the project. /// + [DefaultValue(true)] [JsonProperty("includeInProject")] public bool IncludeInProject { get; set; } = true;