Make a Reference from a project to a website in the same solution

S

skneife

it seems that it is not possible to make a project Reference from a
project class library to a website in the same solution, because the
website doesn't contains any assembly (dll).
So, if in the same solution I have a project of type class librairy
and I want to make a reference to a website that contains any classes
that I need to use, the add reference menu doesn't reference any
project for the website.
Does anyone have a solution ?

Sam
 
S

Scott Roberts

it seems that it is not possible to make a project Reference from a
project class library to a website in the same solution, because the
website doesn't contains any assembly (dll).
So, if in the same solution I have a project of type class librairy
and I want to make a reference to a website that contains any classes
that I need to use, the add reference menu doesn't reference any
project for the website.
Does anyone have a solution ?

Sam

Take the classes that are currently in your web site and put them into a
separate class library (MyWebClasses.dll). Then have your web site reference
that class library.

Now you can have your existing class library reference MyWebClasses.dll.
 

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

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,021
Latest member
AkilahJaim

Latest Threads

Top