continuity/build/Configuration.cs

17 lines
478 B
C#
Raw Normal View History

2023-10-08 10:47:30 +00:00
using System;
using System.ComponentModel;
using System.Linq;
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
public static implicit operator string(Configuration configuration)
{
return configuration.Value;
}
}