continuity/build/Configuration.cs

12 lines
421 B
C#
Raw Normal View History

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