Friday, March 16, 2012

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

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

Quote:

Originally Posted by

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.
In this case WebProject solution is used, instead of WebSite

--
WBR, Michael Nemtsev [.NET/C# MVP].
Blog: http://spaces.live.com/laflour
"skneife@.gmail.com" wrote:

Quote:

Originally Posted by

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
>


On 13 dc, 02:09, Michael Nemtsev <nemt...@.msn.comwrote:

Quote:

Originally Posted by

In this case WebProject solution is used, instead of WebSite


Thank you.

Sam

0 comments:

Post a Comment