简体   繁体   English

是否可以在项目之间共享母版页?

[英]Is it possible to share a Master Page between projects?

We have several different MVC2 projects on the go and I would like to be able to share a single master page between them. 我们在旅途中有几个不同的MVC2项目,我希望能够在它们之间共享一个主页面。

Is there an easy way to do this without recreating the same master page in each project? 有没有一种简单的方法可以在不重建每个项目中的相同母版页的情况下执行此操作?

You could add the master page as a link if the projects sharing the master page are in the same solution. 如果共享母版页的项目位于同一解决方案中,则可以将母版页添加为链接。 Add->Existing item->browse to the master page file and select "Add as Link". 添加 - >现有项目 - >浏览到母版页文件,然后选择“添加为链接”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM