Closed PilotBob closed 6 years ago
I see you haven't responded to issues here in a while.
Anyway, I was able to get this working by putting each attribute in it's own set of <> so rather than:
<Assembly: Attribute(), Assembly: Attribute()>
I used:
<Assembly: Attribute()> <Assembly: Attribute()>
putting this here incase it helps others.
I have a solution with both C# and VB projects. I have the task set to update the file version revision. So, the fileversionattribute is in the existing AssemblyInfo.vb file:
<Assembly: AssemblyVersionAttribute("7.5.3.0"), Assembly: AssemblyFileVersion("7.5.3.0")>
However, when I build I get the error:
\AssemblyInfo.vb(19,2): Error BC30663: Attribute 'AssemblyFileVersionAttribute' cannot be applied multiple times.
Process 'msbuild.exe' exited with code '1'.
I did check I don't have this attribute elsewhere, the project builds fine on my PC in VS so I know it isn't defined twice in my code.
So it seems it is adding the attribute rather than updating the existing one. It is updating the existing attribute in the AssemblyInfo.cs files just fine.
Thanks.