本文介绍了Selfhosted MVC 5项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿你知道如何运行的MVC 5项目没有IIS或IIS防爆preSS在您的桌面上的本地?

Hey there do you know how to run a MVC 5 Project without IIS or IIS Express local on your desktop ?

在ASP.NET vNext有它所做的可能一个WebListener但我不能reorganice我的项目ASP.NET vNext。

In ASP.NET vNext there is a WebListener which made that possible but I can't reorganice my project to ASP.NET vNext.

有没有在ASP.NET vNext?

Is there any possibility running a MVC 5 Project as well as in ASP.NET vNext?

推荐答案

看起来不像其他的答案居然回答你的问题。简短的回答是否定的,你不能自我主机MVC 5,因为它依赖于IIS。如果你想有一个自我托管的Web应用程序,你要么端口现有的应用程序,例如,南希,或等待MVC 6的版本,它确实可以自行主办。或者,你可以看看网页API,在目前的版本中还可以自主办。

Doesn't look like the other answers actually answer your question. The short answer is no, you cannot self host MVC 5, since it is dependent on IIS. If you want a self hosted web application, you either have to port your existing application to, for example, Nancy, or wait for the release of MVC 6 which can indeed be self hosted. Alternatively, you can look into Web Api, where the current version also can be self hosted.

这篇关于Selfhosted MVC 5项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-11 05:37