Compiling apps with DLL source

Posted on 2004-11-02
Last Modified: 2010-04-23
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?

Question by:MIKEV

    Author Comment

    Oh, and I've set the dependancies so that DLLTester 'depends on' MyDLL.
    LVL 5

    Accepted Solution

    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 ...

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Suggested Solutions

    Title # Comments Views Activity
    Remove vb. Net project from git 2 22
    Dataset not reading table data 12 28
    CLS compliant 3 22
    testing for null fails in 3 19
    A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
    1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
    This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

    884 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now