Class Libraries

F

Fresno Bob

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

bruce barker

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)
 
F

Fresno Bob

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

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,705
Latest member
Stefkari24

Latest Threads

Top