I am getting CS0579 errors from my TFS automated build system. The same build script works fine on my development machine. Build is also successful in Visual Studio. The project is that is erroring is C# netcoreapp3.1 and platform x64
ERROR: Tests.AssemblyInfo.cs(15,12): error CS0579: Duplicate 'System.Reflection.AssemblyFileVersionAttribute' attribute
Error is repeated for several other attributes:
- System.Reflection.AssemblyInformationalVersionAttribute
- System.Reflection.AssemblyProductAttribute
- System.Reflection.AssemblyTitleAttribute
- System.Reflection.AssemblyVersionAttribute
Am I missing something on my build agent? What could be going on?
Edit: I should have mentioned that there is no AssemblyInfo.cs in the project and that false property is already set in the csproj.
Also, as mentioned above the build script has been run successfully on my workstation. Subsequently it has also been run successfully on another dev workstation. But, fails consistently on the TFS build agent.