Skip to content

Commit

Permalink
nuget
Browse files Browse the repository at this point in the history
  • Loading branch information
neuecc committed Sep 25, 2022
1 parent 6b0c34e commit 0b7eed7
Show file tree
Hide file tree
Showing 8 changed files with 42 additions and 41 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -116,3 +116,5 @@ nuget/*.unitypackage
.idea/

# Unity

__packages/
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,19 @@

Ideally fast no encoding binary serializer for .NET.



`<EnablePreviewFeatures>True</EnablePreviewFeatures>`



wire format
---
* unmanaged struct
* object
* collection
* union

License
---
This library is licensed under the MIT License.
4 changes: 4 additions & 0 deletions src/MemoryPack.Core/MemoryPack.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
<NoWarn>$(NoWarn);CS1591;CA2255</NoWarn>
</PropertyGroup>

<ItemGroup>
<None Include="../../Icon.png" Pack="true" PackagePath="/" />
</ItemGroup>

<ItemGroup>
<None Update="Formatters\TupleFormatter.tt">
<Generator>TextTemplatingFileGenerator</Generator>
Expand Down
12 changes: 12 additions & 0 deletions src/MemoryPack.Generator/MemoryPack.Generator.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,29 @@
<EnablePreviewFeatures>True</EnablePreviewFeatures>
<AnalyzerLanguage>cs</AnalyzerLanguage>
<Nullable>enable</Nullable>
<TargetsForTfmSpecificContentInPackage>$(TargetsForTfmSpecificContentInPackage);PackBuildOutputs</TargetsForTfmSpecificContentInPackage>
<IncludeBuildOutput>false</IncludeBuildOutput>
<DevelopmentDependency>true</DevelopmentDependency>
<IncludeSymbols>false</IncludeSymbols>
<SuppressDependenciesWhenPacking>true</SuppressDependenciesWhenPacking>
<IsRoslynComponent>true</IsRoslynComponent>
</PropertyGroup>

<ItemGroup>
<None Include="../../Icon.png" Pack="true" PackagePath="/" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.4.0-1.final" PrivateAssets="all" />
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.3.3">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>

<!-- for nuget publish -->
<Target Name="PackBuildOutputs" DependsOnTargets="SatelliteDllsProjectOutputGroup;DebugSymbolsProjectOutputGroup">
<ItemGroup>
<TfmSpecificPackageFile Include="$(TargetDir)\*.dll" PackagePath="analyzers\dotnet\cs" />
<TfmSpecificPackageFile Include="@(SatelliteDllsProjectOutputGroupOutput->'%(FinalOutputPath)')" PackagePath="analyzers\dotnet\cs\%(SatelliteDllsProjectOutputGroupOutput.Culture)\" />
</ItemGroup>
</Target>

</Project>
5 changes: 0 additions & 5 deletions src/MemoryPack.Generator/MemoryPackGenerator.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis.Diagnostics;
using System.Runtime.CompilerServices;
using System.Security.Principal;
using System.Text;

namespace MemoryPack.Generator;

Expand Down
30 changes: 0 additions & 30 deletions src/MemoryPack.Generator/Shims.cs

This file was deleted.

14 changes: 9 additions & 5 deletions src/MemoryPack.Streaming/MemoryPack.Streaming.csproj
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<None Include="../../Icon.png" Pack="true" PackagePath="/" />
</ItemGroup>

</Project>
3 changes: 2 additions & 1 deletion src/MemoryPack/MemoryPack.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@
<TargetFramework>net7.0</TargetFramework>
<!-- This project is meta package -->
<IncludeBuildOutput>false</IncludeBuildOutput>
<IncludeContentInPack>false</IncludeContentInPack>
<IncludeContentInPack>true</IncludeContentInPack>
<NoWarn>$(NoWarn);NU5128</NoWarn>
</PropertyGroup>

<ItemGroup>
<None Include="../../Icon.png" Pack="true" PackagePath="/" />
<ProjectReference Include="..\MemoryPack.Core\MemoryPack.Core.csproj" />
<ProjectReference Include="..\MemoryPack.Generator\MemoryPack.Generator.csproj" />
</ItemGroup>
Expand Down

0 comments on commit 0b7eed7

Please sign in to comment.