2
2
3
3
<!-- SourceLink -->
4
4
<PropertyGroup >
5
+ <DebugType >portable</DebugType >
6
+ <DebugSymbols >true</DebugSymbols >
7
+
5
8
<!-- Optional: Declare that the Repository URL can be published to NuSpec -->
6
9
<PublishRepositoryUrl >true</PublishRepositoryUrl >
7
- < IncludeSymbols >false</ IncludeSymbols >
10
+
8
11
<!-- Optional: Embed source files that are not tracked by the source control manager to the PDB -->
9
12
<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 >
18
13
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 >
22
18
23
19
<!-- reference includes -->
24
20
<ItemGroup >
25
- <PackageReference Include =" Microsoft.SourceLink.GitHub" Version =" 1.* " >
21
+ <PackageReference Include =" Microsoft.SourceLink.GitHub" Version =" 1.1.1 " >
26
22
<PrivateAssets >all</PrivateAssets >
27
23
<IncludeAssets >runtime; build; native; contentfiles; analyzers</IncludeAssets >
28
24
</PackageReference >
29
25
</ItemGroup >
30
26
27
+ <ItemGroup >
28
+ <SourceRoot Include =" $(NuGetPackageRoot)" Condition =" '$(NuGetPackageRoot)' != ''" />
29
+ </ItemGroup >
30
+
31
31
<Import Project =" $([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))" />
32
32
</Project >
0 commit comments