Skip to content

Commit de2d622

Browse files
Merge pull request #8 from myvas/9.0
9.0
2 parents 94a774a + 39e96f8 commit de2d622

17 files changed

+2027
-10
lines changed

.github/workflows/dotnet.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
runs-on: ubuntu-latest
2121
strategy:
2222
matrix:
23-
dotnet-version: [ '8.0.x' ]
23+
dotnet-version: [ '9.0.x' ]
2424
steps:
2525
- run: echo "The job was automatically triggered by a ${{ github.event_name }} event."
2626
- run: echo "This job is now running on a ${{ runner.os }} server hosted by GitHub!"
@@ -42,6 +42,10 @@ jobs:
4242
uses: actions/setup-dotnet@v4
4343
with:
4444
dotnet-version: '7.0.x'
45+
- name: Setup dotnet 8.0.x
46+
uses: actions/setup-dotnet@v4
47+
with:
48+
dotnet-version: '8.0.x'
4549
- name: Setup dotnet ${{ matrix.dotnet-version }}
4650
uses: actions/setup-dotnet@v4
4751
with:

.github/workflows/nuget.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
runs-on: ubuntu-latest
1717
strategy:
1818
matrix:
19-
dotnet-version: [ '8.0.x' ]
19+
dotnet-version: [ '9.0.x' ]
2020
steps:
2121
- run: echo "The job was automatically triggered by a ${{ github.event_name }} event."
2222
- run: echo "This job is now running on a ${{ runner.os }} server hosted by GitHub!"
@@ -38,6 +38,10 @@ jobs:
3838
uses: actions/setup-dotnet@v4
3939
with:
4040
dotnet-version: '7.0.x'
41+
- name: Setup dotnet 8.0.x
42+
uses: actions/setup-dotnet@v4
43+
with:
44+
dotnet-version: '8.0.x'
4145
- name: Setup dotnet ${{ matrix.dotnet-version }}
4246
uses: actions/setup-dotnet@v4
4347
with:

Changelog.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Changelog
22

3+
## 9.0.0 (2024-12-06)
4+
- Added target framework: net9.0
5+
6+
## 8.0.0 (2023-11-17)
7+
- Added target framework: net8.0
8+
- Added GitHub actions to test and deploy.
9+
10+
## 7.0.11 (2023-09-15)
11+
- Added target framework: net7.0
12+
313
## 6.0.3
414
- Update to net6.0
515

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</PropertyGroup>
99

1010
<PropertyGroup>
11-
<MinVerMinimumMajorMinor>8.0</MinVerMinimumMajorMinor>
11+
<MinVerMinimumMajorMinor>9.0</MinVerMinimumMajorMinor>
1212
<MinVerTagPrefix>v</MinVerTagPrefix>
1313
<MinVerDefaultPreReleaseIdentifiers>alpha</MinVerDefaultPreReleaseIdentifiers>
1414
<MinVerSkip Condition="'$(Configuration)' == 'Debug'">true</MinVerSkip>

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22

33
* QQConnect: [Here](https://github.com/myvas/AspNetCore.Authentication.QQConnect)
44

5-
[![QQConnect](https://github.com/myvas/AspNetCore.Authentication.QQConnect/actions/workflows/dotnet.yml/badge.svg)](https://github.com/myvas/AspNetCore.Authentication.QQConnect)
65
[![GitHub (Pre-)Release Date](https://img.shields.io/github/release-date-pre/myvas/AspNetCore.Authentication.QQConnect?label=github)](https://github.com/myvas/AspNetCore.Authentication.QQConnect)
6+
[![test](https://github.com/myvas/AspNetCore.Authentication.QQConnect/actions/workflows/dotnet.yml/badge.svg)](https://github.com/myvas/AspNetCore.Authentication.QQConnect/actions)
7+
[![deploy](https://github.com/myvas/AspNetCore.Authentication.QQConnect/actions/workflows/nuget.yml/badge.svg)](https://github.com/myvas/AspNetCore.Authentication.QQConnect/actions)
78
[![NuGet](https://img.shields.io/nuget/v/Myvas.AspNetCore.Authentication.QQConnect.svg)](https://www.nuget.org/packages/Myvas.AspNetCore.Authentication.QQConnect)
89

910
* WeixinOpen: [Here](https://github.com/myvas/AspNetCore.Authentication.WeixinOpen)
@@ -74,7 +75,7 @@ services.AddAuthentication()
7475

7576
# Dev
7677
* [Visual Studio 2022](https://visualstudio.microsoft.com)
77-
* [.NET 8.0, 7.0, 6.0, 5.0, 3.1](https://dotnet.microsoft.com/en-us/download/dotnet)
78+
* [.NET 9.0, 8.0, 7.0, 6.0, 5.0, 3.1](https://dotnet.microsoft.com/en-us/download/dotnet)
7879
* [微信开发者工具](https://mp.weixin.qq.com/debug/wxadoc/dev/devtools/download.html)
7980
8081
# Demo

WeixinAuth.sln

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WeixinAuth.UnitTest_6.0.x",
2929
EndProject
3030
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WeixinAuth.UnitTest_7.0.x", "test\WeixinAuth.UnitTest_7.0.x\WeixinAuth.UnitTest_7.0.x.csproj", "{439BCABC-9551-41E3-88B9-4876F3D71843}"
3131
EndProject
32+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WeixinAuth.UnitTest_8.0.x", "test\WeixinAuth.UnitTest_8.0.x\WeixinAuth.UnitTest_8.0.x.csproj", "{BB4A2455-5EC3-4EFB-B245-9E83EBD6D419}"
33+
EndProject
3234
Global
3335
GlobalSection(SolutionConfigurationPlatforms) = preSolution
3436
Debug|Any CPU = Debug|Any CPU
@@ -51,6 +53,10 @@ Global
5153
{439BCABC-9551-41E3-88B9-4876F3D71843}.Debug|Any CPU.Build.0 = Debug|Any CPU
5254
{439BCABC-9551-41E3-88B9-4876F3D71843}.Release|Any CPU.ActiveCfg = Release|Any CPU
5355
{439BCABC-9551-41E3-88B9-4876F3D71843}.Release|Any CPU.Build.0 = Release|Any CPU
56+
{BB4A2455-5EC3-4EFB-B245-9E83EBD6D419}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
57+
{BB4A2455-5EC3-4EFB-B245-9E83EBD6D419}.Debug|Any CPU.Build.0 = Debug|Any CPU
58+
{BB4A2455-5EC3-4EFB-B245-9E83EBD6D419}.Release|Any CPU.ActiveCfg = Release|Any CPU
59+
{BB4A2455-5EC3-4EFB-B245-9E83EBD6D419}.Release|Any CPU.Build.0 = Release|Any CPU
5460
EndGlobalSection
5561
GlobalSection(SolutionProperties) = preSolution
5662
HideSolutionNode = FALSE
@@ -60,6 +66,7 @@ Global
6066
{94ABBE67-3755-4DD1-A25E-2407FB32C60E} = {73FCFCF4-3A1C-4D4D-939A-9CABDC2341DC}
6167
{0E17A946-9CA1-43D2-97A4-0A5E2F367EDA} = {73FCFCF4-3A1C-4D4D-939A-9CABDC2341DC}
6268
{439BCABC-9551-41E3-88B9-4876F3D71843} = {73FCFCF4-3A1C-4D4D-939A-9CABDC2341DC}
69+
{BB4A2455-5EC3-4EFB-B245-9E83EBD6D419} = {73FCFCF4-3A1C-4D4D-939A-9CABDC2341DC}
6370
EndGlobalSection
6471
GlobalSection(ExtensibilityGlobals) = postSolution
6572
SolutionGuid = {2AEDFD1F-BBE1-4727-9978-2FB04DCE84AF}

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": "8.0.100",
3+
"version": "9.0.100",
44
"rollForward": "latestFeature",
55
"allowPrerelease": false
66
}

src/WeixinAuth/WeixinAuth.csproj

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks>net8.0;net7.0;net6.0;net5.0;netcoreapp3.1</TargetFrameworks>
3+
<TargetFrameworks>net9.0;net8.0;net7.0;net6.0;net5.0;netcoreapp3.1</TargetFrameworks>
44
<ImplicitUsings>enable</ImplicitUsings>
55
<!--<Nullable>enable</Nullable>-->
66
<PackageId>Myvas.AspNetCore.Authentication.WeixinAuth</PackageId>
@@ -23,6 +23,10 @@
2323
<None Include="..\..\LICENSE.txt" Pack="true" PackagePath="\" />
2424
</ItemGroup>
2525

26+
<ItemGroup Condition="'$(TargetFramework)' == 'net9.0'">
27+
<PackageReference Include="Microsoft.AspNetCore.Authentication.Twitter" Version="9.0.0" />
28+
</ItemGroup>
29+
2630
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
2731
<PackageReference Include="Microsoft.AspNetCore.Authentication.Twitter" Version="8.0.0" />
2832
</ItemGroup>

test/WeixinAuth.UnitTest/WeixinAuth.UnitTest.csproj

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

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

88
<ItemGroup>
9-
<PackageReference Include="Microsoft.AspNetCore.TestHost" Version="8.0.12" />
9+
<PackageReference Include="Microsoft.AspNetCore.TestHost" Version="9.0.0" />
1010
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
1111
<PackageReference Include="xunit" Version="2.9.3" />
1212
<PackageReference Include="xunit.runner.visualstudio" Version="3.0.1">

test/WeixinAuth.UnitTest/WeixinAuthTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,7 @@ public async Task AuthenticateWithoutCookieWillReturnNone()
750750
{
751751
var result = await context.AuthenticateAsync(WeixinAuthDefaults.AuthenticationScheme);
752752
Assert.False(result.Succeeded);
753-
{//8.0
753+
{//7.0, 8.0, 9.0
754754
Assert.True(result.None);
755755
Assert.Null(result.Failure);
756756
}

0 commit comments

Comments
 (0)