Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1020313
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T11:08:57+00:00 2026-05-16T11:08:57+00:00

Given multiple websites all running the same sourcecode, what’s the best/most maintainable way to

  • 0

Given multiple websites all running the same sourcecode, what’s the best/most maintainable way to organise these into projects within visual studio?

For example, say we have websites Red, Blue, and Green (etc). Their HTML may be different, but they are a functionally the same.

Previously in one solution we have created one project Colour, which contains a generic version of the project. Red, Blue, and Green get their own project, and each technical page is set to use the C# in Colour. (That is, there’s no unique C# for the individual implementations – all code files get removed).

However, this approach leads us to ending up with multiple individual implementation dll’s that do next to nothing, and also Other Stuff like javascript, css, and common images get duplicated accross projects.

Ideally we’d like to be able to run each project in isolation, and sourcesafe sharing always seems like a terrible idea.

Is there a Better Way?

edit: forgot to mention, all business logic / data access is handled by a shared Business Layer project, so all the code for that is separate and shared.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T11:08:58+00:00Added an answer on May 16, 2026 at 11:08 am

    Pack the shared code into a class library. That’ll take care of the data layer, business logic and some other auxiliary routines. My experience is that it helps a great deal with projects having the same foundation.

    Your projects Red, Green and Blue, if they are different then they have to be kept apart. You can’t really circumvent that. My personal approach is to immediately introduce a change made in one into all others before you forget it. That has worked fine for me.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I currently maintain 3 websites all revolving around the same concept. 2 of them
Given multiple anchor tags: <a class=myclass href=...>My Text</a> How do I select the anchors
Given multiple HTML checkboxes: <input type=checkbox name=catIDs value=1 /> <input type=checkbox name=catIDs value=2 />
I want to have multiple multiple choices given to user after the form submit
Given: public interface IBatchProcess { void Run(); } and multiple implementation of: public class
If I have multiple Oracle clients installed on a given workstation (i.e. Oracle 9
My question is as follows: I have given a workbook to multiple people. They
I have a django application using multiple databases. Given an instance of a model,
I am having trouble understanding the Phing documentation regarding multiple conditions for a given
I have a requirement for a set of asp.net MVC websites as follows: Multiple

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.