Configuration.cs 389 B

12345678910
  1. using Nuke.Common.Tooling;
  2. using System.ComponentModel;
  3. [TypeConverter(typeof(TypeConverter<Configuration>))]
  4. public class Configuration : Enumeration {
  5. public static Configuration Debug = new() {Value = nameof(Debug)};
  6. public static Configuration Release = new() {Value = nameof(Release)};
  7. public static implicit operator string(Configuration configuration) => configuration.Value;
  8. }