• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 147
  • Last Modified:

Unable to import the class files from the class library

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?

Thanks,
0
g46905
Asked:
g46905
1 Solution
 
Arthur_WoodCommented:
have you BUILT the DLL for the class library that you are trying to import?  Have you added it as a Reference?

AW
0
 
g46905Author Commented:
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?

Thanks
0
 
toddhdCommented:
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.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now