How do I do a deterministic build locally (ContinuousIntegrationBuild flag)?

When I attempt to publish my package using NuGet Package Explorer, I see the following warning:


Deterministic (dll/exe): Non deterministic
Ensure that the following property is enabled for CI builds
and you're using at least the 2.1.300 SDK:


However, when I add that property to the PropertyGroup (as described here), VS 2019 freaks out so badly I literally need to ctrl+alt+delete to close it.

According to this page the property name is <Deterministic>, but that doesn't seem to do anything at all.

So how do I get deterministic builds to work?

Visual Studio 2019, v16.7.1
.Net SDK 3.1.401 (LTS)

Read more here:

Content Attribution

This content was originally published by BlueRaja - Danny Pflughoeft at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: