[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now


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
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …

649 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