What is the best way to share MasterPages across projects

前端 未结 7 1174
别那么骄傲
别那么骄傲 2020-12-09 09:10

Suppose you have two seperate ASP.NET Web Application projects that both need to use a common MasterPage.

What\'s the best way to share the MasterPage across project

7条回答
  •  忘掉有多难
    2020-12-09 09:32

    AFAIK there is no elegant way to do what you are looking to.. VS will always end up copying it.

    I think to be honest it may not be a great idea.. Obviously you want to share the lowest common code, but a whole MasterPage?.. Sounds like you could be asking for trouble since one minor change could have such an impact on one or more applications..

    I would suggest instead seperating out the good bits of functionality into components/controls and deploying them.

提交回复
热议问题