PC Review


Reply
Thread Tools Rate Thread

Class Libraries

 
 
Fresno Bob
Guest
Posts: n/a
 
      18th Jan 2008
I am used to putting my business logic layer etc in the App_code folder in a
website project. I want to use class libraries so I can use Sandcastle and
NUnit. However unlike a website project I do not get immediate Intellisense.
I have to

Add the project to the website solution (File>Add>Existing Project)
Add a reference to the class library
Build the solution
Use the class library in website

If I want to change the class library
Change the class code
Build the solution
Use in website

Is this the correct way of using a class library as it is more complicated
than the Website project and I want to know if I am missing anything.


 
Reply With Quote
 
 
 
 
bruce barker
Guest
Posts: n/a
 
      18th Jan 2008
just be sure its a project reference, not a ref to the dll. then if you
change any code in the proj and hit run, it will get recompiled.

i use websites, project files and nunit/msunit with no problems.


-- bruce (sqlwork.com)


"Fresno Bob" wrote:

> I am used to putting my business logic layer etc in the App_code folder in a
> website project. I want to use class libraries so I can use Sandcastle and
> NUnit. However unlike a website project I do not get immediate Intellisense.
> I have to
>
> Add the project to the website solution (File>Add>Existing Project)
> Add a reference to the class library
> Build the solution
> Use the class library in website
>
> If I want to change the class library
> Change the class code
> Build the solution
> Use in website
>
> Is this the correct way of using a class library as it is more complicated
> than the Website project and I want to know if I am missing anything.
>
>
>

 
Reply With Quote
 
Fresno Bob
Guest
Posts: n/a
 
      18th Jan 2008
No I did a link to the dll. I have now changed it to the project. Does this
still mean when I make changes to the class library I have to recompile
before I can use intellisense etc in the website project.

"bruce barker" <(E-Mail Removed)> wrote in message
news:88581E9B-383F-47BD-8874-(E-Mail Removed)...
> just be sure its a project reference, not a ref to the dll. then if you
> change any code in the proj and hit run, it will get recompiled.
>
> i use websites, project files and nunit/msunit with no problems.
>
>
> -- bruce (sqlwork.com)
>
>
> "Fresno Bob" wrote:
>
>> I am used to putting my business logic layer etc in the App_code folder
>> in a
>> website project. I want to use class libraries so I can use Sandcastle
>> and
>> NUnit. However unlike a website project I do not get immediate
>> Intellisense.
>> I have to
>>
>> Add the project to the website solution (File>Add>Existing Project)
>> Add a reference to the class library
>> Build the solution
>> Use the class library in website
>>
>> If I want to change the class library
>> Change the class code
>> Build the solution
>> Use in website
>>
>> Is this the correct way of using a class library as it is more
>> complicated
>> than the Website project and I want to know if I am missing anything.
>>
>>
>>



 
Reply With Quote
 
Kevin Spencer
Guest
Posts: n/a
 
      21st Jan 2008
When you have multiple projects in a solution, the IDE will keep track of
any changes made to those projects and build them when necessary.

--
HTH,

Kevin Spencer
Chicken Salad Surgeon
Microsoft MVP

"Fresno Bob" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> No I did a link to the dll. I have now changed it to the project. Does
> this still mean when I make changes to the class library I have to
> recompile before I can use intellisense etc in the website project.
>
> "bruce barker" <(E-Mail Removed)> wrote in message
> news:88581E9B-383F-47BD-8874-(E-Mail Removed)...
>> just be sure its a project reference, not a ref to the dll. then if you
>> change any code in the proj and hit run, it will get recompiled.
>>
>> i use websites, project files and nunit/msunit with no problems.
>>
>>
>> -- bruce (sqlwork.com)
>>
>>
>> "Fresno Bob" wrote:
>>
>>> I am used to putting my business logic layer etc in the App_code folder
>>> in a
>>> website project. I want to use class libraries so I can use Sandcastle
>>> and
>>> NUnit. However unlike a website project I do not get immediate
>>> Intellisense.
>>> I have to
>>>
>>> Add the project to the website solution (File>Add>Existing Project)
>>> Add a reference to the class library
>>> Build the solution
>>> Use the class library in website
>>>
>>> If I want to change the class library
>>> Change the class code
>>> Build the solution
>>> Use in website
>>>
>>> Is this the correct way of using a class library as it is more
>>> complicated
>>> than the Website project and I want to know if I am missing anything.
>>>
>>>
>>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ConfigurationManager Class Unavailable in Class Libraries =?Utf-8?B?TWlrZQ==?= Microsoft ASP .NET 2 4th Oct 2006 05:33 PM
Windows Mobile 2003 class libraries versus Windows Mobile 5 class libraries Thore Berntsen Microsoft Dot NET Compact Framework 1 26th Jun 2006 05:03 PM
Web Application, Web Service, Class Libraries, and StrongNameIdentityPermissionAttribute Class Mythran Microsoft ASP .NET 1 24th Aug 2005 12:17 AM
Class libraries =?Utf-8?B?QWx2byB2b24gQ29zc2VsIEk=?= Microsoft C# .NET 2 11th Jul 2005 02:47 PM
Class Libraries Jim Heavey Microsoft ASP .NET 1 8th May 2004 04:54 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:18 AM.