跨项目母版页 [英] Cross-Project Master Page
问题描述
我在这里问相似的问题:
I asked a "similar" question here:
<一个href=\"http://stackoverflow.com/questions/5667412/visual-studio-multi-project-solution-options\">Visual工作室多项目解决方案选项
不过,这并没有专门针对我的问题。总之:什么是跨多项目解决方案共享一个主网页的最佳方式?我有超过20个内部Web应用程序项目的解决方案,并希望共同的母版页为所有这些。
However, that did not specifically address my problem. In short: what is the best way to share a master page across a multi-project solution? I have a solution with over 20 internal Web app projects and want a common master page for all of these.
更新:
我将需要共享的其他资源也 - CSS,图片,JS文件等。
I will need to share other resources also - CSS, images, JS files, etc.
推荐答案
也许你可以利用的NuGet ?您可以创建自定义程序包,并在内部举办的。对于每一个项目你只需要安装包,它会带来所有的CSS,图片,JS文件,masterpages。
Perhaps you could take advantage of NuGet? You could create a custom package, and host it internally. For each project you'll just need to install the package, which would bring in all the CSS, images, JS files, and masterpages.
当您更改的NuGet包,你可以很容易地使用包管理器对话框在项目中升级包
When you make changes to the nuget package, you could easily "upgrade" the package using the package manager dialog in your project
这篇关于跨项目母版页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!