Re: How to open a reference file when I debug a project

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Nick Malik [Microsoft] (nickmalik_at_hotmail.nospam.com)
Date: 02/19/05


Date: Sat, 19 Feb 2005 15:34:31 -0800

Clearly, you have two solutions, when you probably only need one solution
with two projects.

A solution is just a collection of projects. It doesn't actually do
anything when it comes to the compiler. Visual Studio cares (but Visual
Studio is an IDE, not a compiler). The C# compiler only cares about
projects, and will produce a single assembly for each project.

Therefore, you can have project A in solution A, as well as in solution B
and solution C.

So, to meet your needs, since you are debugging project B in the context of
project A, perhaps you should have a single solution with both projects in
it.

Solution A contains
   Project A
   Project B

Solution B contains
   Project B

-- 
--- 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.
--
"ahawk" <anonymous@discussions.microsoft.com> wrote in message 
news:002301c515f8$c4636c50$a501280a@phx.gbl...
> Hi, All,
> I'm a beginner of Vb.net. My solution(A) has reference
> another object (solution B), so when I debug( trace) my
> program step by step, the system opens the class code of
> solution B. My question is how can I add breakpoint
> somewhere of one clsss of solution B (open it in Solution
> A environment) and when I trace the Solution A, the
> system will stop at break-point. I don't want to trace
> the code one step by step to open a class in Solution B
> every time, just want to open it in Solution A and add
> breakpoint. is it possible? if it's possible, please tell
> me how.
>
> Thanks and have a good weekend
>
> ahawk 


Relevant Pages