Windows Vista Beta | WinVistaBeta.com - Message | Newbie linking to class library question

November 19, 2008  
Subject: Newbie linking to class library question
Group: microsoft.public.vstudio.general
Date: 7/20/2008 9:28:16 AM
From: "Chris Kennedy" [Email Address Protection]

Hi I am used to using the App_Code folder to put my DAL and BLL classes.
However I want to move toward using separate dll's so I can start doing
things like Unit Tests and using Sandcastle for documentation.

My class library DAL project contains 4 .vb files, each one containing a
single class, which maps to a DB table.This builds OK.
I then create a website and add the class library project to the website. I
then in the website a reference to the project. This builds OK. And I can
see the DLL in the bin folder of the website.

When I go to add code I can't figure out how to "reference" my DAL - it
doesn't appear in the intellisense. I know this will be stupid but I can't
figure it out.

Regards, Chris.


Back
Subject: Re: Newbie linking to class library question
Group: microsoft.public.vstudio.general
Date: 7/21/2008 1:03:30 AM
From: "Chris Kennedy" [Email Address Protection]

I'm an idiot - I forgot to add the word public before the class name.....

"Chris Kennedy" <chris.kennedy10@btinternet.com> wrote in message
news:OELzA1n6IHA.5440@TK2MSFTNGP02.phx.gbl...
> Hi I am used to using the App_Code folder to put my DAL and BLL classes.
> However I want to move toward using separate dll's so I can start doing
> things like Unit Tests and using Sandcastle for documentation.
>
> My class library DAL project contains 4 .vb files, each one containing a
> single class, which maps to a DB table.This builds OK.
> I then create a website and add the class library project to the website.
> I then in the website a reference to the project. This builds OK. And I
> can see the DLL in the bin folder of the website.
>
> When I go to add code I can't figure out how to "reference" my DAL - it
> doesn't appear in the intellisense. I know this will be stupid but I
> can't figure it out.
>
> Regards, Chris.


Back