Skip to content

Commit

Permalink
feat!: .NET 6 RC
Browse files Browse the repository at this point in the history
  • Loading branch information
brunobritodev committed Oct 21, 2021
1 parent 5dc4e74 commit 4bdf075
Show file tree
Hide file tree
Showing 9 changed files with 31 additions and 7 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches: [ master ]

env:
PACKAGE_MAJOR_VERSION: 5
PACKAGE_MAJOR_VERSION: 6
PACKAGE_MINOR_VERSION: 0
CURRENT_REPO_URL: https://github.com/${{ github.repository }}

Expand All @@ -20,6 +20,11 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v2

- name: Setup .NET 6
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x

- name: Setup .NET 5
uses: actions/setup-dotnet@v1
with:
Expand All @@ -31,7 +36,7 @@ jobs:
dotnet-version: 3.1.x

- name: Generate version
run: echo "PACKAGE_VERSION=$PACKAGE_MAJOR_VERSION.$PACKAGE_MINOR_VERSION.$GITHUB_RUN_NUMBER" >> $GITHUB_ENV
run: echo "PACKAGE_VERSION=$PACKAGE_MAJOR_VERSION.$PACKAGE_MINOR_VERSION.$GITHUB_RUN_NUMBER-rc.2.21480.5" >> $GITHUB_ENV

- name: Generate Package
run: dotnet pack -c Release -o out -p:PackageVersion=${{env.PACKAGE_VERSION}} -p:RepositoryUrl=${{env.CURRENT_REPO_URL}}
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v2

- name: Setup .NET 6
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x

- name: Setup .NET 5
uses: actions/setup-dotnet@v1
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
<ItemGroup Condition="'$(TargetFramework)' == 'net5.0'">
<PackageReference Include="Microsoft.Extensions.Caching.Abstractions" Version="5.0.0" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'net6.0'">
<PackageReference Include="Microsoft.Extensions.Caching.Abstractions" Version="6.0.0-rc.2.21480.5" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\NetDevPack.Security.Jwt\NetDevPack.Security.Jwt.csproj" />
</ItemGroup>
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
17 changes: 12 additions & 5 deletions src/NetDevPack.Security.Jwt/NetDevPack.Security.Jwt.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netstandard2.1;net5.0</TargetFrameworks>
<TargetFrameworks>netstandard2.1;net5.0;net6.0</TargetFrameworks>
<LangVersion>8</LangVersion>
<Version>5.0.0</Version>
<Authors>Bruno Brito</Authors>
Expand All @@ -16,19 +16,26 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="System.Text.Json" Version="5.0.2" />
<PackageReference Include="Microsoft.IdentityModel.Tokens" Version="6.12.2" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="5.0.2" />
<PackageReference Include="Microsoft.IdentityModel.Tokens" Version="6.13.1" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="6.0.0-rc.2.21480.5" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.1'">
<PackageReference Include="System.Text.Json" Version="5.0.2" />
<PackageReference Include="Microsoft.Extensions.Options" Version="3.1.15" />
<PackageReference Include="Microsoft.AspNetCore.DataProtection" Version="3.1.15" />
<PackageReference Include="Microsoft.Extensions.Caching.Abstractions" Version="3.1.15" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'net5.0'">
<PackageReference Include="System.Text.Json" Version="5.0.2" />
<PackageReference Include="Microsoft.Extensions.Options" Version="5.0.0" />
<PackageReference Include="Microsoft.Extensions.Caching.Abstractions" Version="5.0.0" />
<PackageReference Include="Microsoft.AspNetCore.DataProtection" Version="5.0.9" />
<PackageReference Include="Microsoft.AspNetCore.DataProtection" Version="5.0.11" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'net6.0'">
<PackageReference Include="System.Text.Json" Version="6.0.0-rc.2.21480.5" />
<PackageReference Include="Microsoft.Extensions.Options" Version="6.0.0-rc.2.21480.5" />
<PackageReference Include="Microsoft.Extensions.Caching.Abstractions" Version="6.0.0-rc.2.21480.5" />
<PackageReference Include="Microsoft.AspNetCore.DataProtection" Version="6.0.0-rc.2.21480.10" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,8 @@
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="5.0.6" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net6.0'">
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="6.0.0-rc.2.21480.10" />
</ItemGroup>

</Project>
Binary file not shown.

0 comments on commit 4bdf075

Please sign in to comment.