Go To Definition in anther project

G

Guest

If two projects (say ProjectA and ProjectB) are in the same solution and
ProjectA references ProjectB then VS.NET will navigate you to the line of
text where an object is defined in ProjectB when you click on the Go To
Definition item from the context menu while in ProjectA. But, if ProjectA
references the dll file of ProjectB then the Object Browser window is shown
when you click on the Go To Definition item. Is there any way to reference
ProjectB's dll and still have VS.NET navagate you to the line of code where
an object is defined? How about in VS.NET 2005?

Thanks,
Lance
 
N

Nick Malik [Microsoft]

ljlevend2 said:
If two projects (say ProjectA and ProjectB) are in the same solution and
ProjectA references ProjectB then VS.NET will navigate you to the line of
text where an object is defined in ProjectB when you click on the Go To
Definition item from the context menu while in ProjectA. But, if ProjectA
references the dll file of ProjectB then the Object Browser window is
shown
when you click on the Go To Definition item. Is there any way to
reference
ProjectB's dll and still have VS.NET navagate you to the line of code
where
an object is defined? How about in VS.NET 2005?

Thanks,
Lance

If you reference the dll, then the object definition IS in the object
browser. The IDE will not go and try to find the source code for the dll,
and then check to see if it was created with Visual Studio, and then try to
open it. Even if it could, do you want it to close the current solution to
open the new one?

If you have created unit tests against your compiled interface, then the
need for doing this is quite small. However, it may occur. In those cases,
I'd say that you may want to start both projects in two instances of Visual
Studio. This makes switching from one to the other much easier.

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top