Skip to content

Commit 50bad50

Browse files
author
Christoph Bühler
committed
chore: upgrade dependencies and nuke
1 parent f2181b8 commit 50bad50

File tree

4 files changed

+17
-3
lines changed

4 files changed

+17
-3
lines changed

build/Build.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class Build : NukeBuild
2323
[Parameter("Configuration to build - Default is 'Debug' (local) or 'Release' (server)")]
2424
readonly Configuration Configuration = IsLocalBuild ? Configuration.Debug : Configuration.Release;
2525

26-
[Solution] readonly Solution Solution = new Solution();
26+
[Solution] readonly Solution Solution = new();
2727

2828
AbsolutePath SourceDirectory => RootDirectory / "src";
2929
AbsolutePath TestsDirectory => RootDirectory / "tests";

build/Configuration.cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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+
}

build/_build.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</PropertyGroup>
1111

1212
<ItemGroup>
13-
<PackageReference Include="Nuke.Common" Version="0.24.11" />
13+
<PackageReference Include="Nuke.Common" Version="5.0.2" />
1414
</ItemGroup>
1515

1616
<ItemGroup>

src/KubeOps.Testing/KubeOps.Testing.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
</PropertyGroup>
2020

2121
<ItemGroup>
22-
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="3.1.9" />
22+
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="5.0.1" />
2323
</ItemGroup>
2424

2525
<ItemGroup>

0 commit comments

Comments
 (0)