Duplicate AssemblyVersion Attribute

c#, compiler-errors

Solution

I have also run into this issue in the past, so I am going to assume that your build process provides assembly information separately to providing versioning. And that causes a duplication as your project also has that info in the `AssemblyInfo.cs` file. So remove the file and I think it should work.

Problem

I have a project that generates following error on compilation: error CS0579: Duplicate 'AssemblyVersion' attribute I have checked the file `AssemblyInfo.cs` and it looks like there is no duplication there. I found this article on MSDN which addresses a similar problem and following the suggestion in this article fixes the problem as well. Can anyone tell me what's going on here? Does it happen only in case of having two or more projects with classes having similar names? Or is it something else?

Original source

Related problems