Why use and what is project reference

T

Tony Johansson

Hello!

I use C# and VS 2003

My exe file is using several class dll

If I have a class Dll called Test.dll that I want to add a reference to I
use the add reference in project settings and select the.NET tab and then
brows to the directory and then
select the class dll called Test.dll.

Microsoft recommend that people should use project reference I just wonder
what does this mean actually and what advantage do I get. I just can't
understand what it means.

I mean that I must use that add reference and select the .NET tab and then
select the actual class dll otherwise I get error because it can't find the
class library.

//Tony







--------------------------------------------------------------------------------
 
K

Kevin Spencer

Hi Tony,
Microsoft recommend that people should use project reference I just wonder
what does this mean actually and what advantage do I get. I just can't
understand what it means.

A Solution is made up of multiple Projects. To add a reference to a Project,
you add the Project to the Solution, and then add a reference to that
Project, rather then the DLL. This enables you more debugging control, as
you can step through the methods of the referenced Project DLL, and if you
make any changes to that Project, they are updated when you rebuild the
Solution.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Show me your certification without works,
and I'll show my certification
*by* my works.
 

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