Skip to content

Commit 7c8a5c0

Browse files
authored
Add DebugType as portable, to generate deterministic nupkgs in 1ES (#343)
1 parent c293037 commit 7c8a5c0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Directory.Build.props

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
<AnalysisLevel>latest</AnalysisLevel>
1414
<AnalysisMode>recommended</AnalysisMode>
1515
<SharedRoot>$(SrcRoot)Shared/</SharedRoot>
16+
<!-- This setting makes symbol files (PDBs) available, which is seemingly necessary for having a 'deterministic' build checkmark in our NuGet package.
17+
This is recommended for NuGet packages, as per: https://devblogs.microsoft.com/dotnet/producing-packages-with-source-link/
18+
The connection to deterministic builds is explored here: https://www.meziantou.net/creating-reproducible-build-in-dotnet.htm -->
19+
<DebugType>portable</DebugType>
1620
</PropertyGroup>
1721

1822
<Import Project="$(EngRoot)targets/Release.props" />

0 commit comments

Comments
 (0)