CS0436: Type conflicts with the imported type

后端 未结 5 1999
礼貌的吻别
礼貌的吻别 2020-12-06 09:43

I am including an instance of the same source files in multiple assemblies using the Add As Link option. I specifically need to include an instance of the same source withi

5条回答
  •  生来不讨喜
    2020-12-06 10:04

    It is worth noting that another way to get such warnings is by simply setting a project in visual studio to reference itself: References -> Solution -> etc etc (how I figured this gem out is left as an exercise to the reader ...)

    Visual Studio will happily comply, only to throw a wall of warnings of the type described by OP during build, which is to be expected (upon reflection) since every single class etc is getting defined twice.

提交回复
热议问题