Re: Newbie Q about base classes and where to put them
- From: google@xxxxxxxxxxxx
- Date: 23 Oct 2006 04:14:24 -0700
Thanks for the quick response, Eliyahu...
(remember I'm using VS2005..)
I've set up a DLL and placed it elsewhere on my file-system (ie NOT
under my web services directory) and added a Reference to it. I notice
that a copy of that 'master' DLL is then made in a \Bin folder.
What happens if I update my 'master' DLL? Will I need to 'recompile'
the web service?
Thanks
Steve
Eliyahu Goldin wrote:
Steve,
1. You should create a class library project and put the classes there. Then
you can add the same project to multiple solutions.
2. The project will compile into a dll.
3. You will need to add a reference to that project to other projects that
will use it.
--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
<google@xxxxxxxxxxxx> wrote in message
news:1161594979.418476.62830@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Struggling a bit with some newbie questions regarding base classes,
header files and the like in ASP.NET/C#.
(Using VS2005, C# and ASP.NET 2, and new to them all...)
I'm going to be creating about 200 web services that will share some
similar features. I want to abstract out this common functionality
into a baseclass and inherit from that. So far, so good. If I put the
base class in the App_Code directory for a single web service then all
is fine. But I want to use the same base class in my other web
services.
My questions
1. Can I use a base class that is accessible to all my web services?
If I can then where do I put it and how do I refer to it in VS?
2. MUST my baseclass stuff go into a pre-compiled DLL?
3. Can I do compile time '#includes' or equivalent?
Thanks...
(Please reply to the group as the email address I use to post gets too
much spam...)
Steve
.
- Follow-Ups:
- Re: Newbie Q about base classes and where to put them
- From: Eliyahu Goldin
- Re: Newbie Q about base classes and where to put them
- References:
- Newbie Q about base classes and where to put them
- From: google
- Re: Newbie Q about base classes and where to put them
- From: Eliyahu Goldin
- Newbie Q about base classes and where to put them
- Prev by Date: simple chart in ASP.net 2.0
- Next by Date: Re: simple chart in ASP.net 2.0
- Previous by thread: Re: Newbie Q about base classes and where to put them
- Next by thread: Re: Newbie Q about base classes and where to put them
- Index(es):
Relevant Pages
|