Upgrade to .NET 7
This commit is contained in:
parent
848edb69ca
commit
832b4fb36a
14 changed files with 217 additions and 85 deletions
16
build/Configuration.cs
Normal file
16
build/Configuration.cs
Normal file
|
@ -0,0 +1,16 @@
|
|||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using Nuke.Common.Tooling;
|
||||
|
||||
[TypeConverter(typeof(TypeConverter<Configuration>))]
|
||||
public class Configuration : Enumeration
|
||||
{
|
||||
public static Configuration Debug = new Configuration { Value = nameof(Debug) };
|
||||
public static Configuration Release = new Configuration { Value = nameof(Release) };
|
||||
|
||||
public static implicit operator string(Configuration configuration)
|
||||
{
|
||||
return configuration.Value;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue