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); }