Compiling apps with DLL source

I have a small application to test a custom written DLL.  The VB.Net solution contains 2 projects:

DLLTester - Actual application that calls the DLL routines for testing
MyDLL - The DLL code itself.

DLLTester is set as the startup project.  Run the program and all is well.  

My question has to do with re-compilation.  Assume the program and DLL are working ok.  Next I want to add a new class to the DLL and I do so.  I right click MyDLL in the solution window and choose "Build".  Now I go to my main app and do something like:

Dim Test as new MyDLL.NewClass

2 questions:

1 - Why is Newclass not a valid symbol?  I just recompiled the DLL.  Shouldn't the main program now see the new class?
2 - Why, when I right clicked the DLL and chose Build, did it attempt to build the entire solution?  If I choose only the DLL, should it build only the DLL?

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

MIKEVAuthor Commented:
Oh, and I've set the dependancies so that DLLTester 'depends on' MyDLL.
Ignacio Soler GarciaSolution Architech & Technical LeadCommented:
This happens because when you rebuild the DLL it only rebuilds that DLL but it don't replace the DLL file that is inside the /bin folder on the DLLTester dir. This one is the used to take the references from the DLL so, until you rebuild the DLL and then rebuild the DLLTester the new classes won't be avaliable ...

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.