Skip to content

Commit

Permalink
Merge pull request #431 from punker76/jk/portable_symbols_package
Browse files Browse the repository at this point in the history
Fix symbols package
  • Loading branch information
punker76 authored Jan 29, 2022
2 parents e488256 + 0c403df commit 8a84bd3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 40 deletions.
2 changes: 0 additions & 2 deletions src/Directory.build.props
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
<AnalysisLevel>latest</AnalysisLevel>
<LangVersion>latest</LangVersion>

<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<NoWarn>$(NoWarn);CS1591</NoWarn>
<NoError>$(NoError);CS1591</NoError>
<UseWPF>true</UseWPF>
Expand Down
26 changes: 13 additions & 13 deletions src/GongSolutions.WPF.DragDrop/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,31 @@

<!-- SourceLink -->
<PropertyGroup>
<DebugType>portable</DebugType>
<DebugSymbols>true</DebugSymbols>

<!-- Optional: Declare that the Repository URL can be published to NuSpec -->
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<IncludeSymbols>false</IncludeSymbols>

<!-- Optional: Embed source files that are not tracked by the source control manager to the PDB -->
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<!-- <DebugType>embedded</DebugType> -->
<DebugType>full</DebugType>
<DebugSymbols>true</DebugSymbols>
<!-- Optional: Include PDB in the built .nupkg -->
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
<!-- https://github.com/dotnet/sourcelink/blob/master/docs/README.md#embedallsources -->
<!-- <EmbedAllSources>true</EmbedAllSources>-->
</PropertyGroup>

<ItemGroup>
<SourceRoot Include="$(NuGetPackageRoot)" Condition="'$(NuGetPackageRoot)' != ''" />
</ItemGroup>
<!-- Optional: Build symbol package (.snupkg) to distribute the PDB containing Source Link -->
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>

<!-- reference includes -->
<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.*">
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
<SourceRoot Include="$(NuGetPackageRoot)" Condition="'$(NuGetPackageRoot)' != ''" />
</ItemGroup>

<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))" />
</Project>
26 changes: 1 addition & 25 deletions src/GongSolutions.WPF.DragDrop/GongSolutions.WPF.DragDrop.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,6 @@
<Title>gong-wpf-dragdrop</Title>
<RootNamespace>GongSolutions.Wpf.DragDrop</RootNamespace>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<OutputType>Library</OutputType>
</PropertyGroup>

<!-- SourceLink -->
<PropertyGroup>
<!-- Optional: Declare that the Repository URL can be published to NuSpec -->
<PublishRepositoryUrl>true</PublishRepositoryUrl>

<!-- Optional: Embed source files that are not tracked by the source control manager to the PDB -->
<EmbedUntrackedSources>true</EmbedUntrackedSources>

<!-- Optional: Build symbol package (.snupkg) to distribute the PDB containing Source Link -->
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>

<!-- reference includes -->
<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
<SourceRoot Include="$(NuGetPackageRoot)" Condition="'$(NuGetPackageRoot)' != ''" />
</ItemGroup>
</Project>

0 comments on commit 8a84bd3

Please sign in to comment.