Debugging with VS 2010 issues.

I'm just now starting to use VS 2010. In my solution, I have a web application (using local IIS on windows 7 box) and a class library. In VS 2008, if I right click a function in a web app and click "Show Definition" it takes me to the code in the class library. In VS 2010, it takes me to the object browser. Also, breakpoints aren't working properly or not at all in the class library side of the solution. Breakpoints work fine in the web app. What am I doing wrong?
LVL 1
MisledmanAsked:
Who is Participating?
 
MisledmanConnect With a Mentor Author Commented:
I figured it out...... The class library was targeting .Net 3.5. The web app was targeting .Net 4.0. Changed the class library to 4.0 and it works as expected now....
0
 
mcmahon_sCommented:
Is the class library in the same solution as the web application?
In the web app, did you add the reference to the class library as a project reference or directly to the compiled dll?
0
 
MisledmanAuthor Commented:
Actually, I got the debugging part working with "Rebuild". It seems, VS 2010 rebuilds a bit different than 2008. So, I can put in a breakpoint and it stops there. However, I still can't right click a function and click "Go to Definition". Doing that brings up obeject browser. In VS 2008, it went straight to the code in the class.

To answer your question....The class library is in the same solution referenced as a project (NOT the DLL).
0
 
MisledmanAuthor Commented:
This is the answer...
0
All Courses

From novice to tech pro — start learning today.