MoonStom
MoonStom

Reputation: 2903

Compile on save is not working for ASP.NET 5 apps in VS 2015 RC

I just installed Visual Studio 2015 RC on a clean Win 8.1 machine and created an app from the default template Asp .NET 5 Preview Template / Web Site.

If I hit run, the web app starts, but changing for example the ViewBag.Message in the home controller isn't reflecting the change in the browser after reloading the page.

    public ActionResult About()
    {
        ViewBag.Message = "Your application description page.";

        return View();
    }

I looked around but couldn't find the cause of the issue. IE11 and Chrome behaves the same. Client-side caching is disabled. This article suggests it should be working: http://docs.asp.net/en/latest/tutorials/your-first-aspnet-application.html

What am I missing here?

Upvotes: 3

Views: 703

Answers (1)

Victor Hurdugaci
Victor Hurdugaci

Reputation: 28425

Make sure you are not starting the application with debugging. For compile on the fly to work, the app must be started without debugging.

Upvotes: 3

Related Questions