2023-10-08 10:47:30 +00:00
|
|
|
using System.ComponentModel;
|
|
|
|
using Nuke.Common.Tooling;
|
|
|
|
|
|
|
|
[TypeConverter(typeof(TypeConverter<Configuration>))]
|
|
|
|
public class Configuration : Enumeration
|
|
|
|
{
|
2023-10-12 06:35:36 +00:00
|
|
|
public static Configuration Debug { get; } = new() { Value = nameof(Debug) };
|
|
|
|
public static Configuration Release { get; } = new() { Value = nameof(Release) };
|
2023-10-08 10:47:30 +00:00
|
|
|
|
2023-10-12 07:15:34 +00:00
|
|
|
public static implicit operator string(Configuration configuration) => configuration.Value;
|
2023-10-08 10:47:30 +00:00
|
|
|
}
|