Skip to content

Commit 8a84bd3

Browse files
authored
Merge pull request punker76#431 from punker76/jk/portable_symbols_package
Fix symbols package
2 parents e488256 + 0c403df commit 8a84bd3

File tree

3 files changed

+14
-40
lines changed

3 files changed

+14
-40
lines changed

src/Directory.build.props

-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
<AnalysisLevel>latest</AnalysisLevel>
1515
<LangVersion>latest</LangVersion>
1616

17-
<DebugSymbols>true</DebugSymbols>
18-
<DebugType>full</DebugType>
1917
<NoWarn>$(NoWarn);CS1591</NoWarn>
2018
<NoError>$(NoError);CS1591</NoError>
2119
<UseWPF>true</UseWPF>

src/GongSolutions.WPF.DragDrop/Directory.Build.props

+13-13
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,31 @@
22

33
<!-- SourceLink -->
44
<PropertyGroup>
5+
<DebugType>portable</DebugType>
6+
<DebugSymbols>true</DebugSymbols>
7+
58
<!-- Optional: Declare that the Repository URL can be published to NuSpec -->
69
<PublishRepositoryUrl>true</PublishRepositoryUrl>
7-
<IncludeSymbols>false</IncludeSymbols>
10+
811
<!-- Optional: Embed source files that are not tracked by the source control manager to the PDB -->
912
<EmbedUntrackedSources>true</EmbedUntrackedSources>
10-
<!-- <DebugType>embedded</DebugType> -->
11-
<DebugType>full</DebugType>
12-
<DebugSymbols>true</DebugSymbols>
13-
<!-- Optional: Include PDB in the built .nupkg -->
14-
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
15-
<!-- https://github.com/dotnet/sourcelink/blob/master/docs/README.md#embedallsources -->
16-
<!-- <EmbedAllSources>true</EmbedAllSources>-->
17-
</PropertyGroup>
1813

19-
<ItemGroup>
20-
<SourceRoot Include="$(NuGetPackageRoot)" Condition="'$(NuGetPackageRoot)' != ''" />
21-
</ItemGroup>
14+
<!-- Optional: Build symbol package (.snupkg) to distribute the PDB containing Source Link -->
15+
<IncludeSymbols>true</IncludeSymbols>
16+
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
17+
</PropertyGroup>
2218

2319
<!-- reference includes -->
2420
<ItemGroup>
25-
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.*">
21+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
2622
<PrivateAssets>all</PrivateAssets>
2723
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
2824
</PackageReference>
2925
</ItemGroup>
3026

27+
<ItemGroup>
28+
<SourceRoot Include="$(NuGetPackageRoot)" Condition="'$(NuGetPackageRoot)' != ''" />
29+
</ItemGroup>
30+
3131
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))" />
3232
</Project>

src/GongSolutions.WPF.DragDrop/GongSolutions.WPF.DragDrop.csproj

+1-25
Original file line numberDiff line numberDiff line change
@@ -6,30 +6,6 @@
66
<Title>gong-wpf-dragdrop</Title>
77
<RootNamespace>GongSolutions.Wpf.DragDrop</RootNamespace>
88
<GenerateDocumentationFile>true</GenerateDocumentationFile>
9+
<OutputType>Library</OutputType>
910
</PropertyGroup>
10-
11-
<!-- SourceLink -->
12-
<PropertyGroup>
13-
<!-- Optional: Declare that the Repository URL can be published to NuSpec -->
14-
<PublishRepositoryUrl>true</PublishRepositoryUrl>
15-
16-
<!-- Optional: Embed source files that are not tracked by the source control manager to the PDB -->
17-
<EmbedUntrackedSources>true</EmbedUntrackedSources>
18-
19-
<!-- Optional: Build symbol package (.snupkg) to distribute the PDB containing Source Link -->
20-
<IncludeSymbols>true</IncludeSymbols>
21-
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
22-
</PropertyGroup>
23-
24-
<!-- reference includes -->
25-
<ItemGroup>
26-
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
27-
<PrivateAssets>all</PrivateAssets>
28-
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
29-
</PackageReference>
30-
</ItemGroup>
31-
32-
<ItemGroup>
33-
<SourceRoot Include="$(NuGetPackageRoot)" Condition="'$(NuGetPackageRoot)' != ''" />
34-
</ItemGroup>
3511
</Project>

0 commit comments

Comments
 (0)