Skip to content

Commit 0b7eed7

Browse files
committed
nuget
1 parent 6b0c34e commit 0b7eed7

File tree

8 files changed

+42
-41
lines changed

8 files changed

+42
-41
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,3 +116,5 @@ nuget/*.unitypackage
116116
.idea/
117117

118118
# Unity
119+
120+
__packages/

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,19 @@
33

44
Ideally fast no encoding binary serializer for .NET.
55

6+
7+
8+
`<EnablePreviewFeatures>True</EnablePreviewFeatures>`
9+
10+
11+
12+
wire format
13+
---
14+
* unmanaged struct
15+
* object
16+
* collection
17+
* union
18+
619
License
720
---
821
This library is licensed under the MIT License.

src/MemoryPack.Core/MemoryPack.Core.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
<NoWarn>$(NoWarn);CS1591;CA2255</NoWarn>
1111
</PropertyGroup>
1212

13+
<ItemGroup>
14+
<None Include="../../Icon.png" Pack="true" PackagePath="/" />
15+
</ItemGroup>
16+
1317
<ItemGroup>
1418
<None Update="Formatters\TupleFormatter.tt">
1519
<Generator>TextTemplatingFileGenerator</Generator>

src/MemoryPack.Generator/MemoryPack.Generator.csproj

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,29 @@
77
<EnablePreviewFeatures>True</EnablePreviewFeatures>
88
<AnalyzerLanguage>cs</AnalyzerLanguage>
99
<Nullable>enable</Nullable>
10+
<TargetsForTfmSpecificContentInPackage>$(TargetsForTfmSpecificContentInPackage);PackBuildOutputs</TargetsForTfmSpecificContentInPackage>
1011
<IncludeBuildOutput>false</IncludeBuildOutput>
1112
<DevelopmentDependency>true</DevelopmentDependency>
13+
<IncludeSymbols>false</IncludeSymbols>
14+
<SuppressDependenciesWhenPacking>true</SuppressDependenciesWhenPacking>
1215
<IsRoslynComponent>true</IsRoslynComponent>
1316
</PropertyGroup>
1417

1518
<ItemGroup>
19+
<None Include="../../Icon.png" Pack="true" PackagePath="/" />
1620
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.4.0-1.final" PrivateAssets="all" />
1721
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.3.3">
1822
<PrivateAssets>all</PrivateAssets>
1923
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2024
</PackageReference>
2125
</ItemGroup>
2226

27+
<!-- for nuget publish -->
28+
<Target Name="PackBuildOutputs" DependsOnTargets="SatelliteDllsProjectOutputGroup;DebugSymbolsProjectOutputGroup">
29+
<ItemGroup>
30+
<TfmSpecificPackageFile Include="$(TargetDir)\*.dll" PackagePath="analyzers\dotnet\cs" />
31+
<TfmSpecificPackageFile Include="@(SatelliteDllsProjectOutputGroupOutput->'%(FinalOutputPath)')" PackagePath="analyzers\dotnet\cs\%(SatelliteDllsProjectOutputGroupOutput.Culture)\" />
32+
</ItemGroup>
33+
</Target>
34+
2335
</Project>

src/MemoryPack.Generator/MemoryPackGenerator.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
using Microsoft.CodeAnalysis;
2-
using Microsoft.CodeAnalysis.CSharp;
32
using Microsoft.CodeAnalysis.CSharp.Syntax;
4-
using Microsoft.CodeAnalysis.Diagnostics;
5-
using System.Runtime.CompilerServices;
6-
using System.Security.Principal;
7-
using System.Text;
83

94
namespace MemoryPack.Generator;
105

src/MemoryPack.Generator/Shims.cs

Lines changed: 0 additions & 30 deletions
This file was deleted.
Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

3-
<PropertyGroup>
4-
<TargetFramework>net6.0</TargetFramework>
5-
<ImplicitUsings>enable</ImplicitUsings>
6-
<Nullable>enable</Nullable>
7-
</PropertyGroup>
3+
<PropertyGroup>
4+
<TargetFramework>net6.0</TargetFramework>
5+
<ImplicitUsings>enable</ImplicitUsings>
6+
<Nullable>enable</Nullable>
7+
</PropertyGroup>
8+
9+
<ItemGroup>
10+
<None Include="../../Icon.png" Pack="true" PackagePath="/" />
11+
</ItemGroup>
812

913
</Project>

src/MemoryPack/MemoryPack.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@
44
<TargetFramework>net7.0</TargetFramework>
55
<!-- This project is meta package -->
66
<IncludeBuildOutput>false</IncludeBuildOutput>
7-
<IncludeContentInPack>false</IncludeContentInPack>
7+
<IncludeContentInPack>true</IncludeContentInPack>
88
<NoWarn>$(NoWarn);NU5128</NoWarn>
99
</PropertyGroup>
1010

1111
<ItemGroup>
12+
<None Include="../../Icon.png" Pack="true" PackagePath="/" />
1213
<ProjectReference Include="..\MemoryPack.Core\MemoryPack.Core.csproj" />
1314
<ProjectReference Include="..\MemoryPack.Generator\MemoryPack.Generator.csproj" />
1415
</ItemGroup>

0 commit comments

Comments
 (0)