问题
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