C# type defined in an assembly that is not referenced

后端 未结 7 1335
梦毁少年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:41

    To help people getting here from Google, Merlyn's comment asking about delay-signed was the answer for me.

    I was getting this error referencing a delay-signed assembly A that referenced a type X defined in assembly B. I got the error that B wasn't referenced (and I was already referencing the signed version of B).

    The fix was to find and reference the signed version of A.

提交回复
热议问题