C# type defined in an assembly that is not referenced

后端 未结 7 1313
梦毁少年i
梦毁少年i 2021-01-01 23:00

I have two projects A and B. Project A makes use of type X in project B, so I have a reference to B added in A. Everything built fine.

I signed project B using a s

7条回答
  •  死守一世寂寞
    2021-01-01 23:47

    Based on what you said in the comments, I would say it's most definitely something up with Project A.

    Perhaps these steps will help fix it:

    1. Remove the reference to project B and save
    2. Crack open the .csproj file with notepad or something
    3. Look for any references to Project B in there (maybe a hintpath node) and remove the node.
    4. If Project A happens to be an ASP.NET project, look in your web.config or your aspx page headers for any references to Project B.

    Once you remove all references to the project, reload the project as bottlenecked suggested and see if that fixes it for you.

提交回复
热议问题