Skip to content

Commit

Permalink
add nuget information for formatters and convertes
Browse files Browse the repository at this point in the history
  • Loading branch information
faustodavid committed Jun 14, 2020
1 parent 9d5269b commit 6c4b471
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 35 deletions.
1 change: 1 addition & 0 deletions perf/ListPool.Benchmarks/ListPool.Benchmarks.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

<ItemGroup>
<PackageReference Include="BenchmarkDotNet" Version="0.12.0" />
<PackageReference Include="System.Text.Json" Version="4.7.2" />
<PackageReference Include="Utf8Json" Version="1.3.7" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,36 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<RootNamespace>ListPool.Serializers.System.Text.Json.Converters</RootNamespace>
<AssemblyName>ListPool.Serializers.SystemTextJson.Converters</AssemblyName>
</PropertyGroup>
<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<Nullable>enable</Nullable>
<LangVersion>latest</LangVersion>
<Authors>Fausto David Suarez Rosario</Authors>
<Title>ListPool.Serializers.SystemTextJson.Converters</Title>
<PackageId>ListPool.Serializers.SystemTextJson.Converters</PackageId>
<Description>High-performance converters for ListPool.</Description>
<PackageTags>ASP.NET;List;System.Buffers;ArrayPool;ListPool;Performance;Span;System.Text.Json</PackageTags>
<RepositoryUrl>https://github.com/faustodavid/ListPool</RepositoryUrl>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageVersion>0.1.0</PackageVersion>
<PackageReleaseNotes></PackageReleaseNotes>
<Copyright>Copyright © Fausto David Suarez Rosario 2020</Copyright>
<PackageProjectUrl>https://github.com/faustodavid/ListPool</PackageProjectUrl>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\ListPool\ListPool.csproj" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\ListPool\ListPool.csproj"/>
</ItemGroup>

<ItemGroup>
<PackageReference Include="System.Text.Json" Version="4.7.0" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="System.Text.Json" Version="4.7.0"/>
</ItemGroup>

<ItemGroup>
<None Include="..\..\LICENSE">
<Pack>True</Pack>
<PackagePath></PackagePath>
</None>
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<Nullable>enable</Nullable>
<LangVersion>latest</LangVersion>
<Authors>Fausto David Suarez Rosario</Authors>
<Title>ListPool.Formatters.Utf8Json</Title>
<PackageId>ListPool.Formatters.Utf8Json</PackageId>
<Description>High-performance formatters for ListPool.</Description>
<PackageTags>ASP.NET;List;System.Buffers;ArrayPool;ListPool;Performance;Span;Utf8Json</PackageTags>
<RepositoryUrl>https://github.com/faustodavid/ListPool</RepositoryUrl>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageVersion>0.0.3</PackageVersion>
<PackageReleaseNotes></PackageReleaseNotes>
<Copyright>Copyright © Fausto David Suarez Rosario 2020</Copyright>
<PackageProjectUrl>https://github.com/faustodavid/ListPool</PackageProjectUrl>
</PropertyGroup>
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<Nullable>enable</Nullable>
<LangVersion>latest</LangVersion>
<Authors>Fausto David Suarez Rosario</Authors>
<Title>ListPool.Serializers.Utf8Json.Formatters</Title>
<PackageId>ListPool.Serializers.Utf8Json.Formatters</PackageId>
<Description>High-performance formatters for ListPool.</Description>
<PackageTags>ASP.NET;List;System.Buffers;ArrayPool;ListPool;Performance;Span;Utf8Json</PackageTags>
<RepositoryUrl>https://github.com/faustodavid/ListPool</RepositoryUrl>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageVersion>1.0.0</PackageVersion>
<PackageReleaseNotes></PackageReleaseNotes>
<Copyright>Copyright © Fausto David Suarez Rosario 2020</Copyright>
<PackageProjectUrl>https://github.com/faustodavid/ListPool</PackageProjectUrl>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Utf8Json" Version="1.3.7" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Utf8Json" Version="1.3.7"/>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\ListPool\ListPool.csproj" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\ListPool\ListPool.csproj"/>
</ItemGroup>

<ItemGroup>
<None Include="..\..\LICENSE">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public void Serialize(ref JsonWriter writer, ListPool<T> value, IJsonFormatterRe

IJsonFormatter<T> formatter = formatterResolver.GetFormatterWithVerify<T>();

if (value.Count != 0)
if (value.Count > 0)
{
formatter.Serialize(ref writer, value[0], formatterResolver);
}
Expand Down

0 comments on commit 6c4b471

Please sign in to comment.