Skip to content

Commit 83f10e6

Browse files
committed
chore: reduce package size & include xml documentation in package
1 parent fa82acd commit 83f10e6

2 files changed

Lines changed: 5 additions & 19 deletions

File tree

.github/workflows/publish.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,5 @@ jobs:
8383
file_glob: true
8484
overwrite: true
8585

86-
- name: Push package to NuGet
87-
run: dotnet nuget push "dist/package/*.${{ env.VERSION }}.nupkg" --api-key ${{secrets.nuget_api_key}} --source https://api.nuget.org/v3/index.json
88-
89-
- name: Push symbol package to NuGet
90-
run: dotnet nuget push "dist/package/*.${{ env.VERSION }}.snupkg" --api-key ${{secrets.nuget_api_key}} --source https://api.nuget.org/v3/index.json
86+
- name: Push packages to NuGet
87+
run: dotnet nuget push "dist/package/*.${{ env.VERSION }}.nupkg" --api-key ${{secrets.nuget_api_key}} --source https://api.nuget.org/v3/index.json #also pushes symbol package by default

CSharpFunctionalExtensions.HttpResults/CSharpFunctionalExtensions.HttpResults.csproj

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
<Nullable>enable</Nullable>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<LangVersion>latest</LangVersion>
8-
<TargetsForTfmSpecificBuildOutput>$(TargetsForTfmSpecificBuildOutput);CopyProjectReferencesToPackage</TargetsForTfmSpecificBuildOutput>
98
<GenerateDocumentationFile>true</GenerateDocumentationFile>
109
<EmbedUntrackedSources>true</EmbedUntrackedSources>
1110
<PublishRepositoryUrl>true</PublishRepositoryUrl>
@@ -26,11 +25,6 @@
2625
<Company>co-IT.eu GmbH</Company>
2726
</PropertyGroup>
2827

29-
<ItemGroup>
30-
<None Include="..\README.md" Pack="true" PackagePath="\"/>
31-
<None Include="..\LICENSE.md" Pack="true" PackagePath="\"/>
32-
</ItemGroup>
33-
3428
<ItemGroup>
3529
<FrameworkReference Include="Microsoft.AspNetCore.App"/>
3630
</ItemGroup>
@@ -40,17 +34,12 @@
4034
</ItemGroup>
4135

4236
<ItemGroup>
43-
<TfmSpecificPackageFile Include="$(OutputPath)\CSharpFunctionalExtensions.HttpResults.Generators.dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false"/>
44-
<TfmSpecificPackageFile Include="$(OutputPath)\CSharpFunctionalExtensions.HttpResults.dll" Pack="true" PackagePath="lib/$(TargetFramework)" Visible="false"/>
37+
<None Include="..\README.md" Pack="true" PackagePath="\"/>
38+
<None Include="..\LICENSE.md" Pack="true" PackagePath="\"/>
39+
<None Include="$(OutputPath)\net9.0\CSharpFunctionalExtensions.HttpResults.Generators.dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false"/>
4540
</ItemGroup>
4641

4742
<ItemGroup>
4843
<ProjectReference Include="..\CSharpFunctionalExtensions.HttpResults.Generators\CSharpFunctionalExtensions.HttpResults.Generators.csproj" PrivateAssets="All"/>
4944
</ItemGroup>
50-
51-
<Target DependsOnTargets="ResolveReferences" Name="CopyProjectReferencesToPackage">
52-
<ItemGroup>
53-
<BuildOutputInPackage Include="@(ReferenceCopyLocalPaths->WithMetadataValue('ReferenceSourceTarget', 'ProjectReference'))"/>
54-
</ItemGroup>
55-
</Target>
5645
</Project>

0 commit comments

Comments
 (0)