Skip to content

Commit 57497d4

Browse files
Merge pull request #3 from myvas/release/3.1
release 3.1.0.1
2 parents b60c567 + 30c7788 commit 57497d4

File tree

5 files changed

+13
-16
lines changed

5 files changed

+13
-16
lines changed

WeixinAuth.sln

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

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio 15
4-
VisualStudioVersion = 15.0.27130.2010
3+
# Visual Studio Version 16
4+
VisualStudioVersion = 16.0.29424.173
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{672FEA18-F072-4549-9C4C-DBD1F9CDC7BB}"
77
EndProject
@@ -11,6 +11,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "_", "_", "{E9754587-13F5-4E
1111
.gitignore = .gitignore
1212
Changelog.md = Changelog.md
1313
global.json = global.json
14+
NuGet.Config = NuGet.Config
1415
README.md = README.md
1516
EndProjectSection
1617
EndProject

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"sdk": {
3-
"version": "2.2"
3+
"version": "3.1"
44
}
55
}

src/WeixinAuth/WeixinAuth.csproj

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@
33
<PropertyGroup>
44
<PackageId>Myvas.AspNetCore.Authentication.WeixinAuth</PackageId>
55
<AssemblyName>Myvas.AspNetCore.Authentication.WeixinAuth</AssemblyName>
6-
<TargetFramework>netcoreapp3.0</TargetFramework>
7-
<Version>3.0.100.2</Version>
8-
<PackageVersion>3.0.100-alpha2</PackageVersion>
6+
<TargetFramework>netcoreapp3.1</TargetFramework>
7+
<Version>3.1.0.1</Version>
98
<PackageLicenseExpression>MIT</PackageLicenseExpression>
109
<PackageTags>Myvas,AspNetCore, Authentication, Weixin Auth, Tencent</PackageTags>
1110
<PackageProjectUrl>https://github.com/myvas/AspNetCore.Authentication.WeixinAuth</PackageProjectUrl>
@@ -18,7 +17,7 @@
1817
</PropertyGroup>
1918

2019
<ItemGroup>
21-
<PackageReference Include="Microsoft.AspNetCore.Authentication.OAuth" Version="3.0.0-preview4-19123-01" />
20+
<PackageReference Include="Microsoft.AspNetCore.Authentication.Twitter" Version="3.1.0" />
2221
</ItemGroup>
2322

2423
</Project>

test/WeixinAuth.UnitTest/WeixinAuth.UnitTest.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>netcoreapp3.0</TargetFramework>
4+
<TargetFramework>netcoreapp3.1</TargetFramework>
55

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

99
<ItemGroup>
10-
<PackageReference Include="Microsoft.AspNetCore.Authentication.Cookies" Version="3.0.0-preview4-19123-01" />
11-
<PackageReference Include="Microsoft.AspNetCore.Authentication.Facebook" Version="3.0.0" />
12-
<PackageReference Include="Microsoft.AspNetCore.TestHost" Version="3.0.0" />
13-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.3.0" />
10+
<PackageReference Include="Microsoft.AspNetCore.Authentication.Facebook" Version="3.1.0" />
11+
<PackageReference Include="Microsoft.AspNetCore.TestHost" Version="3.1.0" />
1412
<PackageReference Include="xunit" Version="2.4.1" />
1513
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1">
1614
<PrivateAssets>all</PrivateAssets>

test/WeixinAuth.UnitTest/WeixinAuthTests.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
using Microsoft.Extensions.DependencyInjection;
1212
using Microsoft.Extensions.Logging.Abstractions;
1313
using Myvas.AspNetCore.Authentication;
14-
using Myvas.AspNetCore.Authentication.WeixinAuth;
15-
using Newtonsoft.Json;
1614
using System;
1715
using System.Collections.Generic;
1816
using System.Linq;
@@ -21,12 +19,13 @@
2119
using System.Security.Claims;
2220
using System.Text;
2321
using System.Text.Encodings.Web;
22+
using System.Text.Json;
2423
using System.Threading.Tasks;
2524
using Xunit;
2625

2726
namespace UnitTest
2827
{
29-
public class WeixinAuthTests
28+
public class WeixinAuthTests
3029
{
3130
string correlationKey = ".xsrf";
3231
string correlationId = "TestCorrelationId";
@@ -1397,7 +1396,7 @@ private HttpMessageHandler CreateBackchannel()
13971396
private static HttpResponseMessage ReturnJsonResponse(object content, HttpStatusCode code = HttpStatusCode.OK)
13981397
{
13991398
var res = new HttpResponseMessage(code);
1400-
var text = JsonConvert.SerializeObject(content);
1399+
var text = JsonSerializer.Serialize(content);
14011400
res.Content = new StringContent(text, Encoding.UTF8, "application/json");
14021401
return res;
14031402
}

0 commit comments

Comments
 (0)