Re: Deployment question regarding base class

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Richard Blewett [DevelopMentor] (richardb_at_NOSPAMdevelop.com)
Date: 01/28/05


To: microsoft.public.dotnet.languages.csharp
Date: Fri, 28 Jan 2005 05:24:11 -0800

No, the derived class assemblies do not require recompilation as long as nothing has structurally changed that may affect them (such as changing the signature of a protected method).

 I, of course, assume you are going to run this in a test environment before you release it ;-)

 Regards

 Richard Blewett - DevelopMentor
 http://www.dotnetconsult.co.uk/weblog
 http://www.dotnetconsult.co.uk

   I've got a base class in an assembly, then I have a lot of other
 assemblies that inherit from it.
 
 Now I modified some of the private methods in the base class, and I want
 to deploy the new base class.
 
 Do I have to recompile all of the child class assemblies that inherit
 from it, or will they work "as is" with the new base class (the public
 aspects of the base class are the same)?
 
 I know about GAC versioning, so I plan on keeping the same version
 number in the base class, or I can use a binding redirect, or publisher
 policy, etc. This question isn't about versioing, I'm just wondoring if
 the child projects need to be recompiled.
 
 Eric