Skip to content

Commit cb2194d

Browse files
committed
feat: 强签名程序集; change tfm;
1 parent 0eb9991 commit cb2194d

File tree

13 files changed

+48
-40
lines changed

13 files changed

+48
-40
lines changed

Directory.Build.props

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project>
1+
<Project>
22
<PropertyGroup>
33
<ImplicitUsings>enable</ImplicitUsings>
44
<Nullable>enable</Nullable>
@@ -7,5 +7,7 @@
77
<IsPackable>false</IsPackable>
88

99
<RootNamespace>System.Text.Json.Dynamic</RootNamespace>
10+
11+
<UseArtifactsOutput>true</UseArtifactsOutput>
1012
</PropertyGroup>
11-
</Project>
13+
</Project>

benchmark/Cuture.Extensions.SystemTextJson.Dynamic.Benchmark/Cuture.Extensions.SystemTextJson.Dynamic.Benchmark.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFrameworks>net472;net6.0;net7.0</TargetFrameworks>
5+
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
66
</PropertyGroup>
77

88
<ItemGroup>

benchmark/Cuture.Extensions.SystemTextJson.Dynamic.Benchmark/GenericBenchmark.cs

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
1-
using System.Text.Json;
2-
using System.Text.Json.Dynamic;
3-
using BenchmarkDotNet.Attributes;
1+
using BenchmarkDotNet.Attributes;
42
using BenchmarkDotNet.Jobs;
53

6-
namespace Cuture.Extensions.SystemTextJson.Dynamic;
4+
namespace System.Text.Json.Dynamic;
75

8-
[SimpleJob(RuntimeMoniker.Net472)]
9-
[SimpleJob(RuntimeMoniker.Net60)]
10-
[SimpleJob(RuntimeMoniker.Net70)]
116
[SimpleJob(RuntimeMoniker.Net80)]
7+
[SimpleJob(RuntimeMoniker.Net90)]
128
[MemoryDiagnoser]
139
public class GenericBenchmark
1410
{
@@ -59,7 +55,7 @@ public void JsonSerializerAccess()
5955
internal class Address
6056
{
6157
public AddressCode? Code { get; set; }
62-
public string Name { get; set; }
58+
public required string Name { get; set; }
6359
}
6460

6561
internal class User
@@ -72,5 +68,5 @@ internal class User
7268
internal class AddressCode
7369
{
7470
public int Code { get; set; }
75-
public string Name { get; set; }
71+
public required string Name { get; set; }
7672
}
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
using BenchmarkDotNet.Running;
2-
3-
using Cuture.Extensions.SystemTextJson.Dynamic;
1+
using System.Text.Json.Dynamic;
2+
using BenchmarkDotNet.Running;
43

54
BenchmarkRunner.Run<GenericBenchmark>();
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"profiles": {
3+
"RunBenchmark": {
4+
"commandName": "Project"
5+
}
6+
}
7+
}

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"msbuild-sdks": {
3-
"MSTest.Sdk": "3.10.0"
3+
"MSTest.Sdk": "3.10.1"
44
}
55
}

src/Cuture.Extensions.SystemTextJson.Dynamic/Cuture.Extensions.SystemTextJson.Dynamic.csproj

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

33
<PropertyGroup>
4-
<TargetFrameworks>netstandard2.0;net6.0;net7.0;net8.0;net9.0</TargetFrameworks>
4+
<TargetFrameworks>netstandard2.0;net8.0;net9.0</TargetFrameworks>
55

66
<IsPackable>true</IsPackable>
77
<GenerateDocumentationFile>true</GenerateDocumentationFile>
8+
9+
<SignAssembly>True</SignAssembly>
10+
<AssemblyOriginatorKeyFile>Cuture.Extensions.SystemTextJson.Dynamic.snk</AssemblyOriginatorKeyFile>
811
</PropertyGroup>
912

1013
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
@@ -36,7 +39,7 @@
3639

3740
<Authors>Stratos</Authors>
3841

39-
<Version>1.1.0</Version>
42+
<Version>1.1.1</Version>
4043

4144
<PackageLicenseExpression>MIT</PackageLicenseExpression>
4245
<PackageProjectUrl>https://github.com/cuture/Cuture.Extensions.SystemTextJson.Dynamic</PackageProjectUrl>
Binary file not shown.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[assembly: Parallelize(Scope = ExecutionScope.MethodLevel)]

test/Cuture.Extensions.SystemTextJson.Dynamic.Test/Cuture.Extensions.SystemTextJson.Dynamic.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="MSTest.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net472;net6.0;net7.0;net8.0;net9.0</TargetFrameworks>
4+
<TargetFrameworks>net472;net8.0;net9.0</TargetFrameworks>
55
</PropertyGroup>
66

77
<ItemGroup>

0 commit comments

Comments
 (0)