Skip to content

Commit 6a6dc2d

Browse files
committed
chore: apply new generated enumeration readonly modifier
to the template 'Configuration' enum in new GRUKE projects; also use target-typed new for it, as the default build project is .NET 10.
1 parent a8abbd5 commit 6a6dc2d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

source/Nuke.GlobalTool/templates/Configuration.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
[TypeConverter(typeof(TypeConverter<Configuration>))]
77
public class Configuration : Enumeration
88
{
9-
public static Configuration Debug = new Configuration { Value = nameof(Debug) };
10-
public static Configuration Release = new Configuration { Value = nameof(Release) };
9+
public static readonly Configuration Debug = new() { Value = nameof(Debug) };
10+
public static readonly Configuration Release = new() { Value = nameof(Release) };
1111

1212
public static implicit operator string(Configuration configuration)
1313
{

0 commit comments

Comments
 (0)