visual-studio-2015asp.net-coredynamic-compilationedit-and-continue

Dynamic compilation still does not work in ASP.NET 5 RC1?


The scenario from the "Dynamic Development" section from here http://weblogs.asp.net/scottgu/introducing-asp-net-5

does not work in ASP.NET RC1. I start a new MVC6 project, run it with the debugger, change some string, save the changes, nothing happens. It does work, however, if I start the project without debugging. Also, it works in console applications, for example, with and without debugging.

I know it was an issue in previous version of ASP.NET 5. Is it still not fixed or am I doing something wrong?


Solution

  • Dynamic compilation doesn't work with the debugger attached. You must run without debugger.

    Here's my previous answer a little more details: ASP.NET vNext - compile code dynamically not working for me