Sieve/build/Configuration.cs

15 lines
454 B
C#
Raw Normal View History

using System.ComponentModel;
2021-05-13 14:15:27 +02:00
using Nuke.Common.Tooling;
[TypeConverter(typeof(TypeConverter<Configuration>))]
public class Configuration : Enumeration
{
public static Configuration Debug = new Configuration { Value = nameof(Debug) };
public static Configuration Release = new Configuration { Value = nameof(Release) };
public static implicit operator string(Configuration configuration)
{
return configuration.Value;
}
}