The type or namespace does not exist

前端 未结 12 2054
心在旅途
心在旅途 2021-02-18 13:11

Ok, I have had this one a million times before and it\'s been answered 1 million +1 times before.

And yet, once again. I have 3 projects, A, B, and C, each a DLL. Each

12条回答
  •  情歌与酒
    2021-02-18 13:44

    Basically, this sounds like a missing reference.

    Some sanity checks I can think of are:

    1. Are you sure that the project that generates the error is C?
    2. Are you sure you are did not make a spelling mistake in the namespace B in your using?
    3. Can there have been some compilation error in B before compiling C? (That may cause the compiler to fail finding the namespace in B).
    4. Do you have any other compilation error or warning?

    Edit

    Another suggestion: is the class in the B assembly defined as public?

提交回复
热议问题