Skip to content

Commit

Permalink
Add DebugType as embeddedm enabling deterministic Nupkgs
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmrdavid authored Sep 18, 2024
1 parent c293037 commit b4e8a8b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@
<AnalysisLevel>latest</AnalysisLevel>
<AnalysisMode>recommended</AnalysisMode>
<SharedRoot>$(SrcRoot)Shared/</SharedRoot>
<!-- This setting makes symbol files (PDBs) available within the DLLs
themselves, 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>embedded</DebugType>
</PropertyGroup>

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

0 comments on commit b4e8a8b

Please sign in to comment.