File tree Expand file tree Collapse file tree 8 files changed +9
-18
lines changed
Expand file tree Collapse file tree 8 files changed +9
-18
lines changed Original file line number Diff line number Diff line change 11<Project >
22
33 <PropertyGroup >
4- <TargetFramework >net5 .0</TargetFramework >
4+ <TargetFramework >net6 .0</TargetFramework >
55 <IsPackable >false</IsPackable >
66 </PropertyGroup >
77
Original file line number Diff line number Diff line change 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
33WORKDIR /source
44COPY . .
55RUN dotnet restore
66RUN 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
99ARG templates_version=1.3.0-g46d70c9f41
1010RUN dotnet nuget add source https://pkgs.dev.azure.com/dotnet/Steeltoe/_packaging/dev/nuget/v3/index.json -n SteeltoeDev
1111RUN dotnet new --install Steeltoe.NetCoreTool.Templates::${templates_version} &&\
Original file line number Diff line number Diff 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 :
Original file line number Diff line number Diff line change 11{
22 "sdk" : {
3- "version" : " 5 .0.0" ,
3+ "version" : " 6 .0.0" ,
44 "rollForward" : " latestFeature"
55 }
66}
Original file line number Diff line number Diff line change 1111using Microsoft . OpenApi . Models ;
1212using Steeltoe . Common . Utils . Diagnostics ;
1313using Steeltoe . Management . Endpoint ;
14+ using System . Text . Json . Serialization ;
1415
1516namespace 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 > ( ) ;
Original file line number Diff line number Diff 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 ]
Original file line number Diff line number Diff line change 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" >
Original file line number Diff line number Diff line change 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 >
You can’t perform that action at this time.
0 commit comments