Something, possibly MSBuild, is appending a long string of numbers and characters to the Product version in my assembly’s property sheet:
2024.6.22.6+9f3a8da557d9ed6941ee2dd3751916eb3ff1cece
It should be just this:
2024.6.22.6
Here’s my project file:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
...
(other stuff)
...
<FileVersion>2024.6.22.6</FileVersion>
<Version>2024.6.22.6</Version>
</PropertyGroup>
</Project>
The official documentation doesn’t appear to address this issue. I tried the <VersionSuffix />
element, as well as <InformationalVersion />
, <AssemblyVersion />
and <ProductVersion />
, but none of those made a difference.
How can I fix this and get rid of the extra characters?