How to add a class library to an existing Windows application?

G

Guest

Hello

Using VS 2005 VB.net when a class library gets created you can right click
the project and add a Windows Application and then set it as the "startup
project" then in the Windows application you can add a reference to that
class library in the project by right clicking the Windows Application and
selecting "Add Reference" and you will see the project under the "Projects"
tab and add the project containing its class library to the Windows
application and the application will work.

However if you have an existing Windows Application and you right click it
and select "Add Reference" there won't be a Project with its class library in
the "Projects" tab, even if you browse for one all you will see are the
folders that contain projects. So the question is if you have an existing
Windows application:

How do you add an existing Project with its class library to an existing
Windows Application instead of adding a Windows Application to a existing
class library?
 
A

Armin Zingler

winlin said:
Hello

Using VS 2005 VB.net when a class library gets created you can right
click the project and add a Windows Application and then set it as
the "startup project" then in the Windows application you can add a
reference to that class library in the project by right clicking the
Windows Application and selecting "Add Reference" and you will see
the project under the "Projects" tab and add the project containing
its class library to the Windows application and the application
will work.

However if you have an existing Windows Application and you right
click it and select "Add Reference" there won't be a Project with
its class library in the "Projects" tab, even if you browse for one
all you will see are the folders that contain projects. So the
question is if you have an existing Windows application:

How do you add an existing Project with its class library to an
existing Windows Application instead of adding a Windows Application
to a existing class library?

Menu File -> Add -> Existing project

?


Armin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top