diff --git a/src/JT808.Protocol.Benchmark/JT808.Protocol.Benchmark.csproj b/src/JT808.Protocol.Benchmark/JT808.Protocol.Benchmark.csproj index 834630b..e9dfa40 100644 --- a/src/JT808.Protocol.Benchmark/JT808.Protocol.Benchmark.csproj +++ b/src/JT808.Protocol.Benchmark/JT808.Protocol.Benchmark.csproj @@ -1,7 +1,7 @@  - netcoreapp3.1 + net5 true AnyCPU Exe diff --git a/src/JT808.Protocol.Benchmark/JT808SerializerContext.cs b/src/JT808.Protocol.Benchmark/JT808SerializerContext.cs index 05cca5e..8773d40 100644 --- a/src/JT808.Protocol.Benchmark/JT808SerializerContext.cs +++ b/src/JT808.Protocol.Benchmark/JT808SerializerContext.cs @@ -164,7 +164,8 @@ namespace JT808.Protocol.Benchmark { public JT808SerializerConfig() { - Add(Job.Default.WithGcServer(false).With(CsProjCoreToolchain.NetCoreApp31).With(Platform.AnyCpu)); + AddJob(Job.Default.WithGcServer(false).WithToolchain(CsProjCoreToolchain.NetCoreApp50).WithPlatform(Platform.AnyCpu)); + AddJob(Job.Default.WithGcServer(false).WithToolchain(CsProjCoreToolchain.NetCoreApp31).WithPlatform(Platform.AnyCpu)); } } } diff --git a/src/JT808.Protocol.Test/JT808.Protocol.Test.csproj b/src/JT808.Protocol.Test/JT808.Protocol.Test.csproj index c764558..8391e48 100644 --- a/src/JT808.Protocol.Test/JT808.Protocol.Test.csproj +++ b/src/JT808.Protocol.Test/JT808.Protocol.Test.csproj @@ -1,7 +1,7 @@  - netcoreapp3.1 + net5 false 8.0 @@ -107,15 +107,15 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive - + - - + + diff --git a/src/JT808.Protocol/Extensions/JT808HexExtensions.cs b/src/JT808.Protocol/Extensions/JT808HexExtensions.cs index 055e494..6d10953 100644 --- a/src/JT808.Protocol/Extensions/JT808HexExtensions.cs +++ b/src/JT808.Protocol/Extensions/JT808HexExtensions.cs @@ -65,7 +65,7 @@ namespace JT808.Protocol.Extensions public static string ReadHexStringLittle(ReadOnlySpan read, ref int offset, int len) { - ReadOnlySpan source = read.Slice(offset, len); + //ReadOnlySpan source = read.Slice(offset, len); string hex = HexUtil.DoHexDump(read, offset, len); offset += len; return hex; diff --git a/src/JT808.Protocol/JT808.Protocol.csproj b/src/JT808.Protocol/JT808.Protocol.csproj index 556fc4a..8d72c62 100644 --- a/src/JT808.Protocol/JT808.Protocol.csproj +++ b/src/JT808.Protocol/JT808.Protocol.csproj @@ -1,7 +1,7 @@  - netstandard2.0;netstandard2.1; - 8.0 + netstandard2.0;netstandard2.1;net5; + 9.0 Copyright 2018. SmallChi JT808 @@ -13,27 +13,12 @@ https://github.com/SmallChi/JT808 https://github.com/SmallChi/JT808/blob/master/LICENSE https://github.com/SmallChi/JT808/blob/master/LICENSE + JT808.Protocol.xml false - 2.2.14 + 2.3.0 LICENSE - - $(OutputPath)$(MSBuildProjectName).xml - true - - - true - - - $(OutputPath)$(MSBuildProjectName).xml - - 1701;1702;CS1591;CS1572;CS1573;CS1574;CS1570; - - - $(OutputPath)$(MSBuildProjectName).xml - - 1701;1702;CS1591;CS1572;CS1573;CS1574;CS1570; - + @@ -67,30 +52,38 @@ + + + + + + + + + + - + all runtime; build; native; contentfiles; analyzers; buildtransitive - - - - + + - + TextTemplatingFileGenerator JT808PackageExtensionsTemplate.cs - + - + True