Skip to content

Commit 6b47971

Browse files
committed
Bump .NET SDK to net6.0
1 parent f561968 commit 6b47971

File tree

8 files changed

+9
-18
lines changed

8 files changed

+9
-18
lines changed

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project>
22

33
<PropertyGroup>
4-
<TargetFramework>net5.0</TargetFramework>
4+
<TargetFramework>net6.0</TargetFramework>
55
<IsPackable>false</IsPackable>
66
</PropertyGroup>
77

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11

2-
FROM mcr.microsoft.com/dotnet/sdk:5.0-alpine AS build
2+
FROM mcr.microsoft.com/dotnet/sdk:6.0-alpine AS build
33
WORKDIR /source
44
COPY . .
55
RUN dotnet restore
66
RUN dotnet publish -c release -o /srv --no-restore
77

8-
FROM mcr.microsoft.com/dotnet/sdk:5.0-alpine
8+
FROM mcr.microsoft.com/dotnet/sdk:6.0-alpine
99
ARG templates_version=1.3.0-g46d70c9f41
1010
RUN dotnet nuget add source https://pkgs.dev.azure.com/dotnet/Steeltoe/_packaging/dev/nuget/v3/index.json -n SteeltoeDev
1111
RUN dotnet new --install Steeltoe.NetCoreTool.Templates::${templates_version} &&\

azure-pipelines.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ stages:
2525
vmImage: ubuntu-latest
2626
steps:
2727
- task: UseDotNet@2
28-
displayName: 'Use .NET Core SDK 5.0'
28+
displayName: 'Use .NET Core SDK 6.0'
2929
inputs:
3030
packageType: sdk
31-
version: 5.0.x
31+
version: 6.0.x
3232
- task: DotNetCoreCLI@2
3333
displayName: dotnet restore
3434
inputs:

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"sdk": {
3-
"version": "5.0.0",
3+
"version": "6.0.0",
44
"rollForward": "latestFeature"
55
}
66
}

src/NetCoreToolService/Startup.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
using Microsoft.OpenApi.Models;
1212
using Steeltoe.Common.Utils.Diagnostics;
1313
using Steeltoe.Management.Endpoint;
14+
using System.Text.Json.Serialization;
1415

1516
namespace Steeltoe.NetCoreToolService
1617
{
@@ -41,7 +42,7 @@ public void ConfigureServices(IServiceCollection services)
4142
{
4243
services.AddControllers().AddJsonOptions(options =>
4344
{
44-
options.JsonSerializerOptions.IgnoreNullValues = true;
45+
options.JsonSerializerOptions.DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull;
4546
options.JsonSerializerOptions.PropertyNameCaseInsensitive = true;
4647
});
4748
services.AddTransient<ICommandExecutor, CommandExecutor>();

test/Common.Utils.Test/Diagnostics/CommandExecutorTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public async void UnsuccessfulCommandShouldNotReturn0()
2525
{
2626
var result = await _commandExecutor.ExecuteAsync("dotnet --no-such-option");
2727
Assert.NotEqual(0, result.ExitCode);
28-
Assert.Contains("Unknown option: --no-such-option", result.Error);
28+
Assert.Contains("--no-such-option does not exist", result.Error);
2929
}
3030

3131
[Fact]

test/Common.Utils.Test/IO/Steeltoe.Common.IO.Test.csproj

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2-
<PropertyGroup>
3-
<TargetFrameworks>netcoreapp3.1;net5.0;</TargetFrameworks>
4-
</PropertyGroup>
5-
6-
<Import Project="..\..\..\..\versions.props" />
7-
<Import Project="..\..\..\..\sharedtest.props" />
82

93
<ItemGroup>
104
<None Update="xunit.runner.json">

test/Common.Utils.Test/Steeltoe.Common.Utils.Test.csproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

3-
<PropertyGroup>
4-
<TargetFramework>net5.0</TargetFramework>
5-
</PropertyGroup>
6-
73
<ItemGroup>
84
<ProjectReference Include="..\..\src\Common.Utils\Steeltoe.Common.Utils.csproj" />
95
</ItemGroup>

0 commit comments

Comments
 (0)