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(assume we called then 1,2,3,4,5,6)
and some of these 6 class dll is using some of the other 5 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.

//Tony
 
T

tomb

Tony said:
Hello!

I use C# and VS 2003

My exe file is using several class dll(assume we called then 1,2,3,4,5,6)
and some of these 6 class dll is using some of the other 5 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.

//Tony
If you have multiple projects in a solution, you can modify any one of
them, and rebuild all of them to incorporate any changes in any of
them. That way all the individual projects will be aware of the changes.

However, if the interface in the dll projects doesn't change, then
there's no necessity for using project reference.

T
 

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