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

  • Thread starter Thread starter skneife
  • Start date Start date
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
 
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.
 
Back
Top