重用在多个MVC应用的MVC区域? [英] Reuse an MVC area in multiple MVC applications?

查看:152
本文介绍了重用在多个MVC应用的MVC区域?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一些共同的网页,将在​​多个MVC应用。对于这些网页,我想重新使用不同的MVC Web站点之间的相同的源$ C ​​$ C(控制器+视图)。什么是去这样做的最佳方式?

I have some common web pages that will be in multiple MVC applications. For those pages I'd like to reuse the same source code (controllers + views) between the different MVC web sites. What is the best way to go about doing this?

ASP.NET MVC区域看起来像一种可能性,但他们的网站项目只是一个子目录。是否有可能在多个MVC应用重用MVC面积?

ASP.NET MVC areas seem like one possibility but they just a sub directory of the website project. Is it possible to reuse an MVC area in multiple MVC applications?

推荐答案

您可以的嵌入意见纳入组件和实现自定义的VirtualPathProvider

这篇关于重用在多个MVC应用的MVC区域?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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