dotnet / Nerdbank.GitVersioning

Stamp your assemblies, packages and more with a unique version generated from a single, simple version.json file and include git commit IDs for non-official builds.
https://www.nuget.org/packages/Nerdbank.GitVersioning
MIT License
1.32k stars 165 forks source link

Change F# AssemblyInfo generation to always include a do() after the … #1024

Closed Numpsy closed 6 months ago

Numpsy commented 6 months ago

…version attributes

Fixes #1022

As it stands, assembly version information for F# when ThisAssembly generation is disabled generates things like image because the do() after the attributes is required and isn't added.

There is a unit test for this case, but I don't think it's quite right as it expects the do() to be a header for the #if NETSTANDARD || NETFRAMEWORK || NETCOREAPP bit instead of a footer for the assembly version attributes.