1

In C# WinForms desktop application, according The specified version string contains wildcards, which are not compatible with determinism I've to change <Deterministic>True</Deterministic> to false in myproj.csproj

to increment version with asterisk:

[assembly: AssemblyVersionAttribute("1.0.*")]

and avoid:

Error CS8357 The specified version string contains wildcards, which are not compatible with determinism. Either remove wildcards from the version string, or disable determinism for this compilation

but I can't find xml document with <Deterministic>True</Deterministic> in the project, as it is shown in here The specified version string contains wildcards, which are not compatible with determinism

  • I would imagine that `true` is the default so you should just add that line to the project with the value `false`. – jmcilhinney Aug 15 '21 at 12:48
  • @jmcilhinney Hello! problem was to find this document, so I have opened it separately in editor –  Aug 15 '21 at 14:38

1 Answers1

3

You don't need to look for an XML file.

The document you are looking for is the .csproj of the project.

There, under the tag <PropertyGroup>, you can place <Deterministic>False</Deterministic>

The <Deterministic>False</Deterministic> does not exist in the file, because default value is set to True.

Just add it to .csproj like the examples in the links you added.

GuyKorol
  • 126
  • 5
  • Hello, yes and to see document I've to open it separately in editor –  Aug 15 '21 at 14:36