.NET SDK version 8+ automatically enables this behavior, so you have to explicitly disable it with IncludeSourceRevisionInInformationalVersion
, e.g.:
<Project>
<PropertyGroup>
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
</PropertyGroup>
</Project>