Visual studio. AssemblyVersion with * don't work
Add <Deterministic>
tag with false
value and use *
for the 3'rd part of AssemblyVersion
inside <PropertyGroup>
in .csproj file:
<PropertyGroup>
<ProduceReferenceAssembly>true</ProduceReferenceAssembly>
<Version>1.0.0</Version>
<AssemblyVersion>1.0.*</AssemblyVersion>
<Deterministic>false</Deterministic>
</PropertyGroup>
I guess you were able to use it earlier and can't anymore.
Reason - There have been some changes to Visual Studio as the new project files now default to 'True' for 'Deterministic' attribute.
Solution - as Hans Passant says, edit project file by hand. Cons to doing it, also as he says.
Source - https://marinovdh.wordpress.com/2018/10/22/68/
VS2019 can auto-create an .editorconfig
file putting severity as 'suggest', which content is like this:
[*.cs]
# CS7035: The specified version string does not conform to the recommended format - major.minor.build.revision
dotnet_diagnostic.CS7035.severity = suggestion