Single Codebase multiple websites

前端 未结 8 1576
庸人自扰
庸人自扰 2021-02-02 17:29

We have developed a system that uses a single code base, consisting of four Visual Studio projects with an admin website, and customer facing website (each system has its own MS

8条回答
  •  独厮守ぢ
    2021-02-02 17:40

    Like others, I'm a bit confused as to your problem, but I do think I have a general understanding of the issue. What you need to try to do in this case is abstract the customizations into separate libraries per client / project and leave the original codebase uncustomized. The base code should contain only the generic functionality applicable to all sites (although some functionality could be altered so that you could toggle its availability depending on the need).

    If you do things right, you should be able to export / publish the original code base to any given site at any time and not screw things up. Any customizations should remain intact.

提交回复
热议问题