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

后端 未结 9 939
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:24

    It seems like Extensions.cs is both part of the project that builds lib.dll and your main.exe

    Remove it from one of the project to fix this issue.

提交回复
热议问题