Skip to content

Commit

Permalink
Add DebugType as portable, to generate deterministic nupkgs in 1ES (#343
Browse files Browse the repository at this point in the history
)
davidmrdavid authored Sep 18, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent c293037 commit 7c8a5c0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -13,6 +13,10 @@
<AnalysisLevel>latest</AnalysisLevel>
<AnalysisMode>recommended</AnalysisMode>
<SharedRoot>$(SrcRoot)Shared/</SharedRoot>
<!-- This setting makes symbol files (PDBs) available, which is seemingly necessary for having a 'deterministic' build checkmark in our NuGet package.
This is recommended for NuGet packages, as per: https://devblogs.microsoft.com/dotnet/producing-packages-with-source-link/
The connection to deterministic builds is explored here: https://www.meziantou.net/creating-reproducible-build-in-dotnet.htm -->
<DebugType>portable</DebugType>
</PropertyGroup>

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

0 comments on commit 7c8a5c0

Please sign in to comment.