I’m building an application using Visual Studio 2010 in which I have to use an external dll. While I’m coding, the IDE is not showing to me any errors about methods owned by this dll I added to my project. I can even browse the class object hierarchy. Once I try to compile my project, this reference is lost. I can’t browse the reference anymore and I’m getting the usual error “does not exists in the current context”.
I’ve even recompiled the dll but I’m still having this error.
I’m building an application using Visual Studio 2010 in which I have to use
Share
In your Project’s properties, click on the “Application” tab. Check and see what the “Target Framework” is set to. I was encountering something similar to this before and it was all because the Target Framework was set to “.NET Framework 4 Client Profile” instead of “.NET Framework 4.”
Edit
I’m not exactly sure why this solved the issue in my case with missing references, but it did work. I was following the recommendation of another SO link that I’ll add if I can find again.