Skip to content

Commit eee0b4a

Browse files
authored
Merge pull request #5 from isaacnborges/dotnet-upgrade
dotnet 6 upgrade
2 parents 3c5e557 + 92d39e1 commit eee0b4a

File tree

9 files changed

+31
-26
lines changed

9 files changed

+31
-26
lines changed

.github/workflows/dotnet-workflow.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@v2
1515

16-
- name: Setup .NET 5
16+
- name: Setup .NET 6
1717
uses: actions/setup-dotnet@v1
1818
with:
19-
dotnet-version: 5.0.x
19+
dotnet-version: 6.0.x
2020

2121
- name: Restore dependencies
2222
run: dotnet restore
@@ -81,10 +81,10 @@ jobs:
8181
runs-on: ubuntu-latest
8282
steps:
8383
- uses: actions/checkout@v2
84-
- name: Setup .NET 5
84+
- name: Setup .NET 6
8585
uses: actions/setup-dotnet@v1
8686
with:
87-
dotnet-version: 5.0.x
87+
dotnet-version: 6.0.x
8888

8989
- name: Generate package
9090
run: dotnet pack ./src/CustomExceptionMiddleware.csproj -c Release -o pkg

README-nuget.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ dotnet add package CustomExceptionMiddleware
2222

2323
### Minimum requirements to use: [.NET Standard 2.0](https://docs.microsoft.com/en-us/dotnet/standard/net-standard)
2424

25-
### Compilation requirements: [.NET 5](https://dotnet.microsoft.com/download/dotnet/5.0)
25+
### Compilation requirements: [.NET 6](https://dotnet.microsoft.com/download/dotnet/6.0)
2626

2727
## How to use
2828

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ dotnet add package CustomExceptionMiddleware
2323

2424
### Minimum requirements to use: [.NET Standard 2.0](https://docs.microsoft.com/en-us/dotnet/standard/net-standard)
2525

26-
### Compilation requirements: [.NET 5](https://dotnet.microsoft.com/download/dotnet/5.0)
26+
### Compilation requirements: [.NET 6](https://dotnet.microsoft.com/download/dotnet/6.0)
2727

2828
## How to use
2929

samples/CustomExceptionMiddleware.WebAppTest.Custom/CustomExceptionMiddleware.WebAppTest.Custom.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

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

77
<ItemGroup>
8-
<PackageReference Include="Bogus" Version="33.1.1" />
9-
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.2.3" />
8+
<PackageReference Include="Bogus" Version="34.0.1" />
9+
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.3.0" />
1010
</ItemGroup>
1111

1212
<ItemGroup>

samples/CustomExceptionMiddleware.WebAppTest/CustomExceptionMiddleware.WebAppTest.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

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

77
<ItemGroup>
8-
<PackageReference Include="Bogus" Version="33.1.1" />
9-
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.2.3" />
8+
<PackageReference Include="Bogus" Version="34.0.1" />
9+
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.3.0" />
1010
</ItemGroup>
1111

1212
<ItemGroup>

src/CustomExceptionMiddleware.csproj

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

33
<PropertyGroup>
4-
<TargetFrameworks>netstandard2.0; net5.0</TargetFrameworks>
5-
<Version>1.1.7</Version>
4+
<TargetFrameworks>netstandard2.0;netstandard2.1;</TargetFrameworks>
5+
<Version>1.2.0</Version>
66
<Authors>Isaac Nunes Borges</Authors>
77
<Company>isaacnborges</Company>
8-
<LangVersion>9.0</LangVersion>
8+
<LangVersion>10.0</LangVersion>
99
<PackageId>CustomExceptionMiddleware</PackageId>
1010
<PackageIcon>icon.png</PackageIcon>
1111
<PackageLicenseFile>LICENSE</PackageLicenseFile>
@@ -24,9 +24,9 @@
2424
<ItemGroup>
2525
<PackageReference Include="Microsoft.AspNetCore.Http.Abstractions" Version="2.2.0" />
2626
<PackageReference Include="Microsoft.AspNetCore.Mvc.Abstractions" Version="2.2.0" />
27-
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="2.2.0" />
28-
<PackageReference Include="Microsoft.Extensions.Options" Version="2.2.0" />
29-
<PackageReference Include="System.Text.Json" Version="5.0.2" />
27+
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="6.0.1" />
28+
<PackageReference Include="Microsoft.Extensions.Options" Version="6.0.0" />
29+
<PackageReference Include="System.Text.Json" Version="6.0.2" />
3030
</ItemGroup>
3131

3232
<ItemGroup>

src/Responses/CustomErrorDetailResponse.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ public class CustomErrorDetailResponse
55
/// <summary>
66
/// Exception type to identificate what error was throw
77
/// </summary>
8+
/// <example>VALIDATION_ERRORS</example>
89
public string Type { get; set; }
910

1011
/// <summary>
@@ -35,11 +36,13 @@ public class CustomErrorDetail
3536
/// <summary>
3637
/// Error message
3738
/// </summary>
39+
/// <example>Item not found</example>
3840
public string Msg { get; set; }
3941

4042
/// <summary>
4143
/// StackTrace error message
4244
/// </summary>
45+
/// <example>at CustomExceptionMiddleware.WebAppTest.Custom.ProductService.GetDomainException(Boolean returnProducts)</example>
4346
public string Detail { get; set; }
4447

4548
/// <summary>

src/Responses/CustomErrorResponse.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ public class CustomErrorResponse
55
/// <summary>
66
/// Exception type to identificate what error was throw
77
/// </summary>
8+
/// <example>VALIDATION_ERRORS</example>
89
public string Type { get; set; }
910

1011
/// <summary>
@@ -35,6 +36,7 @@ public class CustomError
3536
/// <summary>
3637
/// Error message
3738
/// </summary>
39+
/// <example>Item not found</example>
3840
public string Msg { get; set; }
3941

4042
/// <summary>

tests/CustomExceptionMiddleware.Tests.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>net5.0</TargetFramework>
4+
<TargetFramework>net6.0</TargetFramework>
55

66
<IsPackable>false</IsPackable>
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="coverlet.msbuild" Version="3.1.0">
10+
<PackageReference Include="coverlet.msbuild" Version="3.1.2">
1111
<PrivateAssets>all</PrivateAssets>
1212
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1313
</PackageReference>
14-
<PackageReference Include="FluentAssertions" Version="6.2.0" />
15-
<PackageReference Include="FluentAssertions.Web" Version="1.1.5" />
14+
<PackageReference Include="FluentAssertions" Version="6.5.1" />
15+
<PackageReference Include="FluentAssertions.Web" Version="1.2.0" />
1616
<PackageReference Include="Microsoft.AspNet.WebApi.Client" Version="5.2.7" />
17-
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="5.0.10" />
18-
<PackageReference Include="Microsoft.AspNetCore.TestHost" Version="5.0.10" />
19-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.0.0" />
17+
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="6.0.3" />
18+
<PackageReference Include="Microsoft.AspNetCore.TestHost" Version="6.0.3" />
19+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.1.0" />
2020
<PackageReference Include="xunit" Version="2.4.1" />
2121
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
2222
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2323
<PrivateAssets>all</PrivateAssets>
2424
</PackageReference>
25-
<PackageReference Include="coverlet.collector" Version="3.1.0">
25+
<PackageReference Include="coverlet.collector" Version="3.1.2">
2626
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2727
<PrivateAssets>all</PrivateAssets>
2828
</PackageReference>

0 commit comments

Comments
 (0)