File tree Expand file tree Collapse file tree 4 files changed +17
-3
lines changed Expand file tree Collapse file tree 4 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ class Build : NukeBuild
23
23
[ Parameter ( "Configuration to build - Default is 'Debug' (local) or 'Release' (server)" ) ]
24
24
readonly Configuration Configuration = IsLocalBuild ? Configuration . Debug : Configuration . Release ;
25
25
26
- [ Solution ] readonly Solution Solution = new Solution ( ) ;
26
+ [ Solution ] readonly Solution Solution = new ( ) ;
27
27
28
28
AbsolutePath SourceDirectory => RootDirectory / "src" ;
29
29
AbsolutePath TestsDirectory => RootDirectory / "tests" ;
Original file line number Diff line number Diff line change
1
+ using System . ComponentModel ;
2
+ using Nuke . Common . Tooling ;
3
+
4
+ [ TypeConverter ( typeof ( TypeConverter < Configuration > ) ) ]
5
+ public class Configuration : Enumeration
6
+ {
7
+ public static Configuration Debug = new ( ) { Value = nameof ( Debug ) } ;
8
+ public static Configuration Release = new ( ) { Value = nameof ( Release ) } ;
9
+
10
+ public static implicit operator string ( Configuration configuration )
11
+ {
12
+ return configuration . Value ;
13
+ }
14
+ }
Original file line number Diff line number Diff line change 10
10
</PropertyGroup >
11
11
12
12
<ItemGroup >
13
- <PackageReference Include =" Nuke.Common" Version =" 0.24.11 " />
13
+ <PackageReference Include =" Nuke.Common" Version =" 5.0.2 " />
14
14
</ItemGroup >
15
15
16
16
<ItemGroup >
Original file line number Diff line number Diff line change 19
19
</PropertyGroup >
20
20
21
21
<ItemGroup >
22
- <PackageReference Include =" Microsoft.AspNetCore.Mvc.Testing" Version =" 3.1.9 " />
22
+ <PackageReference Include =" Microsoft.AspNetCore.Mvc.Testing" Version =" 5.0.1 " />
23
23
</ItemGroup >
24
24
25
25
<ItemGroup >
You can’t perform that action at this time.
0 commit comments