Warning “The type X in Y.cs conflicts with the imported type X in Z.dll”

后端 未结 9 1063
Happy的楠姐
Happy的楠姐 2021-01-03 17:41

The main.cs of my project returns the following warning:

Warning 1 The type \'Extensions.MessageDetails\' in \'PATH\\Extensions.cs\'

9条回答
  •  难免孤独
    2021-01-03 18:08

    In my case, with Visual Studio 2013, I found that one of my class libraries had developed a reference to itself. I think it happened when I added a new project to my solution or it was a bug, but either way it was causing this exact issue.

    Check your project references for any circular references.

提交回复
热议问题