Why can't I reference my class library?

后端 未结 20 1877
隐瞒了意图╮
隐瞒了意图╮ 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:13

    I found how to fix this issue (for me at least). Why it worked, I'm not sure, but it did. (I just tried against a second website that was having the same problem and the following solution worked for that as well).

    I tried the normal cleaning of the projects and rebuilding, shutting down all my Visual Studio instances and restarting them, even tried restarting my computer.

    What actually worked was opening up the project in Visual Studio, closing all the open tabs, and then shutting it down.

    Before I had left the tabs open because I didn't think it mattered (and I hardly ever close the tabs I'm using).

提交回复
热议问题