debugging between namespaces?

L

Les Caudle

I've got some old .NET 1.0 code written by another programmer where he has a
project divided into several different namespaces. I'm attempting to get it
working under .NET 2.0.

I notice that I'm unable to single step debug from one namespace to another, or
even catch a breakpoint in anything but the main namespace.

Is there a simple way to accomplish this I'm overlooking, or must I modify all
the code to bring it into the same namespace?
 
N

Nicholas Paldino [.NET/C# MVP]

Les Caudle,

Are you sure that it's not another assembly, and the namespace divide
happens to coincide with how the assemblies are laid out?

Do you have the code project? Is your reference to the project, or to
the assembly? If it is to the assembly, and not the project, you aren't
going to be able to step into the code in that assembly that is referenced.

Hope this helps.
 
L

Les Caudle

Nicholas - I have all the code, and moved the code into the same project (it was
in separate projects). Only a single dll is produced, so nothing needs to be
referenced.

It compiles, but I can't debug between namespaces.

Regards, Les Caudle
 

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