Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Compiling apps with DLL source

Posted on 2004-11-02
Medium Priority
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

ID: 12474299
Oh, and I've set the dependancies so that DLLTester 'depends on' MyDLL.

Accepted Solution

Ignacio Soler Garcia earned 1000 total points
ID: 12474829
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 ...

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Loops Section Overview
Kernel Data Recovery is a renowned Data Recovery solution provider which offers wide range of softwares for both enterprise and home users with its cost-effective solutions. Let's have a quick overview of the journey and data recovery tools range he…

578 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