| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 | 
							- using System.Globalization;
 
- using JetBrains.Annotations;
 
- using Nuke.Common.Tools.DotNet;
 
- // ReSharper disable ReturnValueOfPureMethodIsNotUsed
 
- public class DotNetConfigHelper
 
- {
 
-     public DotNetBuildSettings Build;
 
-     public DotNetPackSettings Pack;
 
-     public DotNetTestSettings Test;
 
-     public DotNetConfigHelper(DotNetBuildSettings s)
 
-     {
 
-         Build = s;
 
-     }
 
-     public DotNetConfigHelper(DotNetPackSettings s)
 
-     {
 
-         Pack = s;
 
-     }
 
-     public DotNetConfigHelper(DotNetTestSettings s)
 
-     {
 
-         Test = s;
 
-     }
 
-     public DotNetConfigHelper AddProperty(string key, bool value) =>
 
-         AddProperty(key, value.ToString(CultureInfo.InvariantCulture).ToLowerInvariant());
 
-     public DotNetConfigHelper AddProperty(string key, string value)
 
-     {
 
-         Build = Build?.AddProperty(key, value);
 
-         Pack = Pack?.AddProperty(key, value);
 
-         Test = Test?.AddProperty(key, value);
 
-         return this;
 
-     }
 
-     public DotNetConfigHelper SetConfiguration(string configuration)
 
-     {
 
-         Build = Build?.SetConfiguration(configuration);
 
-         Pack = Pack?.SetConfiguration(configuration);
 
-         Test = Test?.SetConfiguration(configuration);
 
-         return this;
 
-     }
 
-     public DotNetConfigHelper SetVerbosity(DotNetVerbosity verbosity)
 
-     {
 
-         Build = Build?.SetVerbosity(verbosity);
 
-         Pack = Pack?.SetVerbostiy(verbosity);
 
-         Test = Test?.SetVerbosity(verbosity);
 
-         return this;
 
-     }
 
-     public static implicit operator DotNetConfigHelper(DotNetBuildSettings s) => new DotNetConfigHelper(s);
 
-     public static implicit operator DotNetConfigHelper(DotNetPackSettings s) => new DotNetConfigHelper(s);
 
-     public static implicit operator DotNetConfigHelper(DotNetTestSettings s) => new DotNetConfigHelper(s);
 
- }
 
 
  |