我怎么没在我的应用程序中每个区卡西尼实例的实例? [英] How do I not instantiate an instance of Cassini for each Area in my application?

查看:165
本文介绍了我怎么没在我的应用程序中每个区卡西尼实例的实例?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在实施地区,但发现它的实例化时,它会启动卡西尼每个区域开发服务器。

I've been implementing areas, but have found that it instantiates a development server for each area when it launches Cassini.

这真的有必要? MSDN是有我的设置这些领域作为独立的网络应用程序,为什么不能把它们放进类库?

Is this really necessary? MSDN is having me setup these areas as separate web apps, Why can't I put them into class libraries?

推荐答案

经过大量的研究,答案似乎是没有。我们仍然在ASP.NET MVC的preVIEW发布2版,所以我已经决定我应该后退,直到他们觉得这件事真的很不错。

After much research the answer appears to be "not yet". We're still in a preview release of ASP.NET MVC v2 so I've decided I should back off until they feel really good about it.

我想我会记下我的经验,对于那些你感兴趣的模块化的ASP.NET MVC的项目。

I thought I'd jot down my experiences for those of you interested in modularizing your ASP.NET MVC projects.

目前,每当你做一个构建,它基本上会将所有子项目(用于创建区域)到父的。一旦你更改了在一个地区你的意见哪一个构建但是经过工作,直到重建的变化显示不出来。这一次伤害敏捷,我知道现在球队正在寻找它。

Currently, whenever you do a build it basically copies all of your child projects (created for the areas) into the parent. Which works after a build HOWEVER, once you make a change to your views in an area, the change doesn't show up until you rebuild. This one hurts agility and I know the team is looking at it now.

由于这个断开连接项目结构,你得到一些标记视图中的问题(丢失智能感知)我们刚刚通常会忽略(如脚本引用等)。只要记住这是从长远来看一个应用程序。

Because of this "disconnected" project structure, you do get some flagged issues (lost intellisense) in the view which we just typically ignore (like script references etc). Just remember it's one application in the long run.

另外,上面贴有该问题。调试时,您将拥有独立的开发实例,但其部署为一个应用程序。

Also, the issue with that posted above. You will have seperate dev instances when debugging but it deploys as one application.

总体而言,有选择家成长自己的模块化解决方案(很像CWAB那样),但我也希望你等待下一个支持preVIEW。我觉得这个团队和他们的能力确实不错。完善区域将真正让我们满意的。

Overall, there are options to "home grow" your own modularized solution (much like CWAB did) but I'd urge you to wait for the next "supported" preview. I feel really good about this team and their abilities. Perfecting areas will really make us satisfied.

这篇关于我怎么没在我的应用程序中每个区卡西尼实例的实例?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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