Configuration.cs 484 B

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