Skip to content

Upgrading from old version to latest one #1211

Answered by VolkmarR
ahmed-abdelrazek asked this question in Q&A
Discussion options

You must be logged in to vote
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; 
     } 
 }

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@VolkmarR
Comment options

Answer selected by ahmed-abdelrazek
@ahmed-abdelrazek
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants