Class Libraries

Class Libraries

am 18.01.2008 16:37:55 von DFS

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.

RE: Class Libraries

am 18.01.2008 17:49:02 von brucebarker

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.
>
>
>

Re: Class Libraries

am 18.01.2008 18:31:42 von DFS

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" wrote in message
news:88581E9B-383F-47BD-8874-495178DFDBF2@microsoft.com...
> 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.
>>
>>
>>

Re: Class Libraries

am 21.01.2008 12:58:56 von Kevin Spencer

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" wrote in message
news:uBVVQgfWIHA.5132@TK2MSFTNGP02.phx.gbl...
> 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" wrote in message
> news:88581E9B-383F-47BD-8874-495178DFDBF2@microsoft.com...
>> 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.
>>>
>>>
>>>
>
>