What is the best practice to segment c#.net projects based on a single base project

Posted by Anthony on Stack Overflow See other posts from Stack Overflow or by Anthony
Published on 2010-05-13T14:26:01Z Indexed on 2010/05/15 22:40 UTC
Read the original article Hit count: 243

Filed under:
|
|

Honestly, I can't word my question any better without describing it.

  • I have a base project (with all its glory, dlls, resources etc) which is a CMS.
  • I need to use this project as a base for othe custom bake projects.
  • This base project is to be maintained and updated among all custom bake projects.
  • I use subversion (Collabnet and Tortise SVN)

I have two questions:

1 - Can I use subversion to share the base project among other projects

What I mean here is can I "Checkout" the base project into another "Checked Out" project and have both update and commit seperatley. So, to paint a picture, let's say I am working on a custom project and I modify the core/base prject in some way (which I know will suit the others) can I then commit those changes and upon doing so when I update the base project in the other "Checked out" resources will it pull the changes? In short, I would like not to have to manually deploy updated core files whenever I make changes into each seperate project.

2 - If I create a custom file (let's say an webcontrol or aspx page etc) can I have it compile seperatley from the base project

Another tricky one to explain. When I publish my web application it creates DLLs based on the namespaces of projects attached to it. So I may have a number of DLLs including the "Website's" namespace DLL, which could simply be website. I want to be able to make a seperate, custom, control which does not compile into those DLLs as the custom files should not rely on those DLLS to run. Is it as simple to set a seperate namespace for those files like CustomFiles.ProjectName for example?

Think of the whole idea as adding modules to the .NET project, I don't want the module's code in any of the core DLLs but I do need for module to be able to access the core dlls.

(There is no need for the core project to access the module code as it should be one way only in theory, though I reckon it woould not be possible anyway without using JSON/SOAP or something like that, maybe I am wrong.)

I want to create a pluggable environment much like that of Joomla/Wordpress as since PHP generally doesn't have to be compiled first I see this is the reason why all this is possible/easy. The idea is to allow pluggable themes, modules etc etc.

(I haven't tried simply adding .NET themes after compile/publish but I am assuming this is possible anyway? OR does the compiler need to reference items in the files?)

© Stack Overflow or respective owner

Related posts about c#

Related posts about ASP.NET