Unable to import the class files from the class library

Posted on 2005-04-27
Last Modified: 2010-04-23
I am relatively new to VB.NET.I am working on a windows application.For this, I have created a class library under the existing solution explorer where I have all the class files.When I try to import the class library, it says that it soes not exist.I am not sure why this is occuring.Can you please help me with this situation?

Question by:g46905
    LVL 44

    Expert Comment

    have you BUILT the DLL for the class library that you are trying to import?  Have you added it as a Reference?


    Author Comment

    1. I rightclicked on the solutions explorer
    2. select new project and select class library.

    How fo I build the DLL for the class  library and reference to it? Could you please help me?

    LVL 8

    Accepted Solution

    You are doing well so far then. You have two options. First, make sure you build the class library project so that you have a dll. Then:

    1) In the project that imports the class library, right click on references, add reference, then select the right most tab - I think it says projects - and select the class library project.

    2) Add a new reference as in #1, but instead of using the third tab, stay on the first. Click the Browse button, and browse to the class library folder location. In the /BIN directory under the project is your dll. Just select it so you have a reference to it.

    Now you should be good to go.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    It’s quite interesting for me as I worked with Excel using 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 …
    Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    761 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

    8 Experts available now in Live!

    Get 1:1 Help Now