保存时编译不适用于VS 2015 RC中的ASP.NET 5应用 [英] Compile on save is not working for ASP.NET 5 apps in VS 2015 RC

查看:37
本文介绍了保存时编译不适用于VS 2015 RC中的ASP.NET 5应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚在干净的Win 8.1机器上安装了Visual Studio 2015 RC,并使用默认模板Asp .NET 5预览模板/网站创建了一个应用程序.

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.

如果我点击运行,则Web应用程序将启动,但是重新加载页面后,例如在主控制器中更改 ViewBag.Message 并不能反映浏览器中的更改.

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();
    }

我环顾四周,但找不到原因.IE11和Chrome的行为相同.客户端缓存已禁用.本文建议它应该可以正常工作: http://docs.asp.net/en/latest/tutorials/your-first-aspnet-application.html

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

我在这里想念什么?

推荐答案

请确保未通过调试启动应用程序.为了能够即时进行编译工作,必须在未调试的情况下启动该应用程序.

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

这篇关于保存时编译不适用于VS 2015 RC中的ASP.NET 5应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆