简体   繁体   English

使用IIS开发ASP.NET MVC 6而无需发布

[英]ASP.NET MVC 6 using IIS to develop without publish

Is there any way to develop an ASP.NET MVC 6 beta 8 application on IIS without having the need to publish the application? 是否可以在无需发布应用程序的情况下在IIS上开发ASP.NET MVC 6 beta 8应用程序?

After install the httpPlatform module I am able to point IIS to a published application. 安装httpPlatform模块后,我可以将IIS指向已发布的应用程序。

But how can yo point IIS to say your visual studio solution wwwroot so you can develop and see the changes you make without having the need to publish? 但是,如何使IIS指出您的Visual Studio解决方案wwwroot,以便您无需发布就可以开发和查看所做的更改?

Is this no longer possible like how it you could develop asp.net MVC 5 apps? 这不再像您开发asp.net MVC 5应用程序时那样吗? For development is IIS Express and Kestrel the preferred way now? 对于开发而言,IIS Express和Kestrel现在是首选方式吗?

Update: I've tried to run both commands like the vs.net debugger shows but I still get bad gateway 更新:我试图运行两个命令,如vs.net调试器显示,但我仍然遇到错误的网关 在此处输入图片说明

在此处输入图片说明

You should read this . 你应该读这个

I am currently using Visual Studio 2015 for developing MVC 6 (beta8) applications, and do not have the problem you describe. 我目前正在使用Visual Studio 2015开发MVC 6(beta8)应用程序,但没有遇到您描述的问题。 An MVC 6 application has a file that by default points to wwwroot folder (I do not remember now the filename), so you should not have problem in change code and hit F5 to see the changes, without publishing. MVC 6应用程序的文件默认情况下指向wwwroot文件夹(我现在不记得文件名了),因此更改代码应该没有问题,并按F5键可以查看更改,而无需发布。

对于任何有兴趣让此功能起作用的人,您可以进行编辑并继续工作,而不必手动构建或发布您的网站,也不必使用源代码进行工作: https : //github.com/tuespetre/dnx-watch -iis

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM