From 5c4a5f855957eaf5b1caf95ce3fddd0682ea80b8 Mon Sep 17 00:00:00 2001 From: Gary Ewan Park Date: Mon, 2 May 2022 20:23:03 +0100 Subject: [PATCH] (#38) Remove hardcoded parameter value This should respect the choice made by the parent project rather than hard-coding to true. --- Chocolatey.Cake.Recipe/Content/build.cake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Chocolatey.Cake.Recipe/Content/build.cake b/Chocolatey.Cake.Recipe/Content/build.cake index d97bd54..54b6d29 100644 --- a/Chocolatey.Cake.Recipe/Content/build.cake +++ b/Chocolatey.Cake.Recipe/Content/build.cake @@ -141,7 +141,7 @@ BuildParameters.Tasks.BuildTask = Task("Build") var xbuildSettings = new XBuildSettings() .SetConfiguration(BuildParameters.Configuration) .WithTarget("Build") - .WithProperty("TreatWarningsAsErrors", "true"); + .WithProperty("TreatWarningsAsErrors", BuildParameters.TreatWarningsAsErrors.ToString()); XBuild(BuildParameters.SolutionFilePath, xbuildSettings); }