continuity/build/Configuration.cs
Timothy Schenk 2198d3992a
All checks were successful
Test if Server can be built / build-server (push) Successful in 23s
refactor: _build to build
2023-10-12 08:35:36 +02:00

16 lines
478 B
C#

using System;
using System.ComponentModel;
using System.Linq;
using Nuke.Common.Tooling;
[TypeConverter(typeof(TypeConverter<Configuration>))]
public class Configuration : Enumeration
{
public static Configuration Debug { get; } = new() { Value = nameof(Debug) };
public static Configuration Release { get; } = new() { Value = nameof(Release) };
public static implicit operator string(Configuration configuration)
{
return configuration.Value;
}
}