I am developing a .NET 6 web application and I have a requirement to set the ProductVersion (or, if that is impossible, at least FileVersion) of the assembly to a custom string, like shown here:
However, I can't figure out how to do it. All the versioning properties I see in the .csproj file seem to expect a specific numeric format like x.y.z or something similar.
Is there a way to do this in the .csproj file, without having to patch the final compiled assembly?


.0automatically at the end... I tried various combinations but I couldn't replicate the version string shown in the screenshot I posted.