2021-02-16 08:36:04 +00:00
|
|
|
using System.ComponentModel;
|
|
|
|
using Nuke.Common.Tooling;
|
|
|
|
|
|
|
|
[TypeConverter(typeof(TypeConverter<Configuration>))]
|
|
|
|
public class Configuration : Enumeration
|
|
|
|
{
|
2022-01-26 14:19:04 +00:00
|
|
|
public static Configuration Debug = new() { Value = nameof(Debug) };
|
|
|
|
public static Configuration Release = new() { Value = nameof(Release) };
|
2021-02-16 08:36:04 +00:00
|
|
|
|
|
|
|
public static implicit operator string(Configuration configuration)
|
|
|
|
{
|
|
|
|
return configuration.Value;
|
|
|
|
}
|
|
|
|
}
|