Why can't I reference my class library?

后端 未结 20 1846
隐瞒了意图╮
隐瞒了意图╮ 2020-12-08 12:38

I have a solution that contains a website and a class library in Visual Studio 2008.

I then have another web site project outside of the solution that needs to refe

20条回答
  •  感情败类
    2020-12-08 13:11

    Since they are both in the same solution, instead of adding a reference to the DLL, add a reference to the class library project itself (the Add Reference dialog will have a tab for this).

    Ahh, it's a different solution. Missed that. How about you try instead of adding a reference to the project affffding a reference to the compiled DLL of your class library. The Add Reference dialog has a Browse tab which does this.

提交回复
热议问题