October 07, 2020

Deterministic builds for .NET in .csproj

There is a feature to produce equivalent byte output for the same code https://gist.github.com/aelij/b20271f4bd0ab1298e49068b388b54ae

To setup it in csproj file there should be next section:

<PropertyGroup>
  <Deterministic>true</Deterministic>
  <PathMap>$(MSBuildProjectDirectory)=C:\</PathMap>
</PropertyGroup>

No comments:

Post a Comment