Skip to content

Commit 357ed2a

Browse files
Optimize SourceLink to only run on Release builds to prevent incremental build breakage (#306)
* Initial plan * Add SourceLink optimization for Debug builds in Library template Co-authored-by: TheAngryByrd <[email protected]> * Remove redundant EmbedUntrackedSources property in Debug configuration Co-authored-by: TheAngryByrd <[email protected]> * Initial plan * Add SourceLink optimization for Debug builds in Library template Co-authored-by: TheAngryByrd <[email protected]> * Complete rebase on master branch Co-authored-by: TheAngryByrd <[email protected]> * Remove .rebase-marker temporary file Co-authored-by: TheAngryByrd <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: TheAngryByrd <[email protected]>
1 parent 946cd40 commit 357ed2a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Content/Library/src/Directory.Build.props

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@
2424
$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
2525
</PropertyGroup>
2626

27+
<PropertyGroup Condition="'$(Configuration)' == 'Debug'">
28+
<!-- Disable SourceLink for Debug builds since it breaks incremental builds. See
29+
https://github.com/dotnet/sdk/issues/37371#issuecomment-2561620166 -->
30+
<EnableSourceLink>false</EnableSourceLink>
31+
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
32+
</PropertyGroup>
33+
2734
<!-- Build Quality -->
2835
<PropertyGroup>
2936
<!--

0 commit comments

Comments
 (0)