ASP.NET MVC 6 using IIS to develop without publish

心不动则不痛 提交于 2019-12-21 22:18:44

问题


Is there any way to develop an ASP.NET MVC 6 beta 8 application on IIS without having the need to publish the application?

After install the httpPlatform module I am able to point IIS to a published application.

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?

Is this no longer possible like how it you could develop asp.net MVC 5 apps? For development is IIS Express and Kestrel the preferred way now?

Update: I've tried to run both commands like the vs.net debugger shows but I still get bad gateway


回答1:


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. 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.




回答2:


For anyone that is interested to get this working so that you have an edit and continue experience and don't have to manually build or publish your site and work against your source code: https://github.com/tuespetre/dnx-watch-iis



来源:https://stackoverflow.com/questions/33291084/asp-net-mvc-6-using-iis-to-develop-without-publish

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!