client-dotnet/build/Configuration.cs

12 lines
403 B
C#
Raw Normal View History

using System.ComponentModel;
using Nuke.Common.Tooling;
[TypeConverter(typeof(TypeConverter<Configuration>))]
public class Configuration : Enumeration
{
public static Configuration Debug = new() { Value = nameof(Debug) };
public static Configuration Release = new() { Value = nameof(Release) };
2023-09-15 17:01:48 +00:00
public static implicit operator string(Configuration configuration) => configuration.Value;
}