How do you sharing web forms and code classes across multiple projects in Visual Studio?
Posted on 2004-08-06
I am developing multiple websites using ASP.NET in Visual Studio (using Visual Basic).
I have many clients that require a similar web site. The core structure is the same, as well as most of the code. However, the websites do have differences, such as image files, CSS files, a vb class that I use to store connection information. To put it another way, there is a basic core that is shared, with particular variations in a limited number of files.
So here's the problem. When I change the code of a core component, I want ALL websites to benefit from that enhancement. So far I only have two websites in ASP.net, but I am converting other sites over from ASP and I may end up with as much as 10-12 websites to maintain. I would like to not have to maintain 12 separate sites, but leverage the fact that most of the site is shared.
I have tried looking into a single solution with multiple projects, but it seems that a project is pretty much a stand-alone application, and that project files can't be used for other projects (I think).
I have also looked into deployment projects that could specify which files are part of a particular application. But there are two disadvantages that I think would exist here:
1. I don't host my own sites and I don't have administrator priveleges on the web server (documentation states that I need this for web deployment setup).
2. I'm not sure how I would be able to develop and view one particular website without deploying it.
Any help that would get me going in the right direction would be appreciated.