Strange Error - CS0012: The type x is defined in an assembly that is not referenced

前端 未结 7 1673
盖世英雄少女心
盖世英雄少女心 2020-12-09 15:28

The type \'x\' is defined in an assembly that is not referenced. You must add a reference to assembly \'abc123\'.

I have a .NET 2.0 web application that references m

7条回答
  •  -上瘾入骨i
    2020-12-09 15:57

    I had the exact same error, but I had a public constructor in my class that used as a parameter, an object from another project.

    I resolved the problem by making that constructor internal.

提交回复
热议问题