Skip to content

Commit 1b40391

Browse files
authored
feat: Add SourceLink configuration for .NET to enhance debugging experience (#614)
feat: Add SourceLink configuration for .NET SDK 8+ to enhance debugging experience Signed-off-by: André Silva <[email protected]>
1 parent 0f1bc59 commit 1b40391

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

build/Common.prod.props

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,16 @@
3333
<None Include="$(MSBuildThisFileDirectory)openfeature-icon.png" Pack="true" PackagePath="\"/>
3434
</ItemGroup>
3535

36+
<!-- SourceLink configuration for .NET SDK 8+ -->
37+
<!-- https://learn.microsoft.com/dotnet/core/compatibility/sdk/8.0/source-link -->
38+
<PropertyGroup Label="SourceLink">
39+
<!-- Publish the repository URL in the built .nupkg (in the NuSpec <Repository> element) -->
40+
<PublishRepositoryUrl>true</PublishRepositoryUrl>
41+
<!-- Embed source files that are not tracked by the source control manager in the PDB -->
42+
<EmbedUntrackedSources>true</EmbedUntrackedSources>
43+
<!-- Include symbols in a separate .snupkg file -->
44+
<IncludeSymbols>true</IncludeSymbols>
45+
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
46+
</PropertyGroup>
47+
3648
</Project>

0 commit comments

Comments
 (0)