Duplicate AssemblyVersion Attribute

前端 未结 21 1626
暖寄归人
暖寄归人 2020-12-02 11:07

I have a project that generates following error on compilation:

error CS0579: Duplicate \'AssemblyVersion\' attribute

I have che

21条回答
  •  甜味超标
    2020-12-02 11:30

    In my case, some temporary *.cs files generated during compilation got accidentally added to the project.

    The files were from the obj\Debug directory, so they definitely shouldn't have been added to the solution. A *.cs wildcard went a little crazy and added them incorrectly.

    Deleting these files fixed the problem.

提交回复
热议问题