如何巩固跨应用程序的ASP.NET母版页? [英] How to consolidate ASP.NET master pages across applications?

查看:85
本文介绍了如何巩固跨应用程序的ASP.NET母版页?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

第一炮,这里有云:

我的工作我的客户端启动了.NET的做法。我们已制订了5个小规模的.NET应用程序目前正在与他们几个人生活投产。他们大多是小件的报告用一些数据输入/业务逻辑功能。这些应用中目前使用的相同的主页。

I am working to start up the .NET practice at my client. We have 5 small scale .NET applications in place currently with a few them of them live into production. They're mostly small reporting pieces with some data entry/business logic functionality. Each of these applications is currently using the identical master pages.

我的意思是,有相同的母版页的每个应用程序的副本。他们都是基本的网站 - > WCF-> BL-> DB层应用程序。所以,我有相同的主网页,我有4份,当我进行了更改它改变。

What I mean is that there is a copy of the same master page in each application. They are all basic website->WCF->BL->DB tiered applications. So I have 4 copies of the same master page that I have to change when I make a change to it.

客户端不希望将所有这些整合到一个单一的解决方案。他们喜欢的跨站点应用的分离。我只是不想继续处理的共同要素多个更新(这将会有更多的在这些应用程序中)的麻烦。

The client DOES NOT want to consolidate all of these into a single solution. They like the separation of applications across sites. I just don't want to continue dealing with the hassle of multiple updates for common elements (which there will be many more of across these applications).

在code是所有存储在Team Foundation Server中。我们也不想给主页面编译成一个.dll和部署。

The code is all stored in team foundation server. We also do NOT want to compile the master page into a .dll and deploy it.

任何人都可以请提出一些建议,我怎么能在我的多个应用程序维护这些公共文件(主,的CSS等)的一个副本。

Can anyone please make some suggestions as to how I can maintain a single copy of these common files (master, .css, etc) across my multiple applications.

在此先感谢

推荐答案

您可能想要看的共享母版页在Visual Studio

如果这是没有任何帮助,那么你可以尝试使用生成事件在Visual Studio中。我会选择其中一个项目是我的主项目,只有从该项目编辑母版页。当您生成项目,将运行,将复制母版页(如果它发生了变化)的命令您所设定的位置。

If that is no help then you could try using Build Events in Visual Studio. I would pick one of the projects to be my "Main Project" and only edit the master page from that project. When you build the project it would run a command that would copy that master page(if it had changed) to your set locations.

这篇关于如何巩固跨应用程序的ASP.NET母版页?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆