包括类库意见 [英] Including Views in a Class Library

查看:103
本文介绍了包括类库意见的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在一个 previous问题我发现了如何创建一个MVC插件架构。我不是全路沿着这条道路,但是我确实有分裂的事情的好办法了。

In a previous question I found out how to create a plugin architecture for MVC. I'm not the whole way down that path yet but I do have a nice way of splitting things up.

有一件事情是窃听我虽然是当他们的类库中的查看intellesense。在核心MVC项目开发它们,然后在将它们复制是一种痛苦。

One thing that is bugging me though is the intellesense for the View when they are in the Class Library. Developing them in the core MVC project and then copying them across is a pain.

基本上是我遇到的问题是,我不明白不够好Studio的视觉是处理ASPX文件。我对此刻的测试,我在想,我也许可以采取随RC1明确的看法建筑的优势。

Basically the problem that I'm having is that I don't understand well enough how Visual Studio is dealing with the aspx files. I'm on Beta at the moment, I'm thinking that I might be able to take advantage of explicit view building that comes with RC1.

任何帮助将是AP preciated。

Any help would be appreciated.

更新:

我把所有的意见整理出来的调查结果时,它实际运行,其在Visual Studio中,我感兴趣的是他们的编辑。难道他们必须在一个web类型的项目?

I have all of the finding of views sorted out when it is actually running, its the editing of them in visual studio I'm interested in. Do they have to be in a web type project?

推荐答案

的意见可以徘徊无论你喜欢。有一个ViewLocator,你可以取代它,并把它们无论你喜欢:的http:/ /blogs.teamb.com/craigstuntz/2008/07/31/37827/

The views can be whereever you like. There's a ViewLocator and you can replace it and put them wherever you like: http://blogs.teamb.com/craigstuntz/2008/07/31/37827/.

您可以把它们放在一个二进制文件或数据库中,如果它让你开心。

You could put them in a binary or in a database if it made you happy.

这篇关于包括类库意见的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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