classes

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I made a web-application, and i created several classes. Now i want to make a
second web-application, which uses the same classes. How can i acchieve this
? Off course with copy - paste, but that would give problems, when i change
something in the classes. The other project wouldn't be up-to-date.

Isn't it possible to put al my classes in some 'package', and 'import' the
'package' in some other application ?

Bart
 
You could compile the classes into a class library, strongly name it and
place it in the GAC. You could just complie the class and place it in a
directory, then have your projects browse to that directory for reference.
You could compile the library and place the dll in each projects bin
directory...

Ben
 
What software did you use to make your web application?

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.
 
Hi Bart,
I would create another project which have all these common classes. Then I
will add this project to each of your projects, which require this common
classes. You could go with placing the output of the common class dll into
GAC, but I would rather not. Since you are saying, the classes could change
again, so each time your common dll gets updated, you would have to deploy
it to DLL. You could consider the GAC option for production server. But on
your developing machine as I said, create another project which contains
these classes, and keep that project type as Class library. Let me know if
you need any help in understanding what I said
 
Back
Top