For some reason, there is an error during cakebuild.net task execution.
The root cause of error is UpdateAssemblyInfo = true property. It's look like attribute duplication happens.
But it's not obvious why it happens for me. Could you pls, reveal such kind of behavior
Prerequisites:
Net 4.7.2
Not AssemblyInformationalVersion attribute in .csproj
Not AssemblyInformationalVersion attribute in Properties\AssemblyInfo
var gitVersion = GitVersion(new GitVersionSettings { OutputType = GitVersionOutput.Json, NoFetch = false, UpdateAssemblyInfo = true });
Error:
Properties\AssemblyInfo.cs(41,12): error CS0579: Duplicate 'AssemblyInformationalVersion' attribute