Skip to content

Commit

Permalink
build: remove symbols from package
Browse files Browse the repository at this point in the history
  • Loading branch information
sandre58 committed May 2, 2024
1 parent eb54fe2 commit 5d7f05f
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 29 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/publish_packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,4 @@ jobs:
with:
filename: 'Artifacts/*.nupkg'
feedUrl: ${{ vars.PRIVATE_NUGET_API_SOURCE }}
apiKey: ${{ secrets.PRIVATE_NUGET_API_KEY }}

# publish artifacts (symbols)
- name: Publish NuGets symbols
uses: dansiegel/publish-nuget@master # https://github.com/marketplace/actions/publish-nuget-packages
with:
filename: 'Artifacts/*.snupkg'
feedUrl: ${{ vars.PRIVATE_NUGET_API_SOURCE }}
apiKey: ${{ secrets.PRIVATE_NUGET_API_KEY }}
8 changes: 0 additions & 8 deletions .github/workflows/publish_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,4 @@ jobs:
with:
filename: 'Artifacts/*.nupkg'
feedUrl: ${{ vars.NUGET_API_SOURCE }}
apiKey: ${{ secrets.NUGET_API_KEY }}

# publish artifacts (symbols)
- name: Publish NuGets symbols
uses: dansiegel/publish-nuget@master # https://github.com/marketplace/actions/publish-nuget-packages
with:
filename: 'Artifacts/*.snupkg'
feedUrl: ${{ vars.NUGET_API_SOURCE }}
apiKey: ${{ secrets.NUGET_API_KEY }}
6 changes: 3 additions & 3 deletions src/Directory.build.props
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@

<!-- Package -->
<PropertyGroup>
<IncludeSource>True</IncludeSource>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<IncludeSource>true</IncludeSource>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<IsPackable Condition="'$(IsTestApp)' != 'true' And '$(IsTestProject)' != 'true'">true</IsPackable>
<GeneratePackageOnBuild Condition="'$(IsTestApp)' != 'true' And '$(IsTestProject)' != 'true' And '$(Configuration)'=='Release'">true</GeneratePackageOnBuild>
<RepositoryUrl>https://github.com/sandre58/MyNetWpf</RepositoryUrl>
Expand All @@ -54,7 +54,7 @@
<PackageReadmeFile>README.md</PackageReadmeFile>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb;.xml</AllowedOutputExtensionsInPackageBuildOutputFolder>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.xml</AllowedOutputExtensionsInPackageBuildOutputFolder>
</PropertyGroup>

<ItemGroup Condition="'$(IsTestApp)' != 'true' And '$(IsTestProject)' != 'true'">
Expand Down
29 changes: 19 additions & 10 deletions src/MyNet.Wpf.LiveCharts/MyNet.Wpf.LiveCharts.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,27 @@
<PackageTags>MyNet;UI;Charts;Wpf;LiveCharts</PackageTags>
</PropertyGroup>

<PropertyGroup>
<TargetsForTfmSpecificBuildOutput>$(TargetsForTfmSpecificBuildOutput);CopyProjectReferencesToPackage</TargetsForTfmSpecificBuildOutput>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Fody" Version="6.8.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="PropertyChanged.Fody" Version="4.1.0">
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Fody" Version="6.8.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="PropertyChanged.Fody" Version="4.1.0">
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="MyNet.Xaml.Merger.MSBuild" Version="0.1.0-pre.16">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\LiveCharts\LiveCharts.Wpf\LiveCharts.Wpf.csproj" />
<ProjectReference Include="..\MyNet.Wpf\MyNet.Wpf.csproj" />
<ProjectReference Include="..\LiveCharts\LiveCharts.Wpf\LiveCharts.Wpf.csproj" PrivateAssets="all" />
<ProjectReference Include="..\MyNet.Wpf\MyNet.Wpf.csproj" PrivateAssets="all" />
</ItemGroup>

<PropertyGroup>
Expand All @@ -44,5 +48,10 @@
<ItemGroup Condition="'$(IsBuildingInsideRider)' == 'True'">
<Page Include="Styles\*.xaml" />
</ItemGroup>


<Target Name="CopyProjectReferencesToPackage" DependsOnTargets="ResolveReferences">
<ItemGroup>
<BuildOutputInPackage Include="@(ReferenceCopyLocalPaths->WithMetadataValue('ReferenceSourceTarget', 'ProjectReference'))" />
</ItemGroup>
</Target>
</Project>

0 comments on commit 5d7f05f

Please sign in to comment.