gpt4 book ai didi

asp.net-core - 保存时编译不适用于 VS 2015 RC 中的 ASP.NET 5 应用程序

转载 作者:行者123 更新时间:2023-12-01 23:44:26 26 4
gpt4 key购买 nike

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

如果我点击运行,Web 应用程序将启动,但在重新加载页面后,更改例如主 Controller 中的 ViewBag.Message 不会反射(reflect)浏览器中的更改。

    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

我在这里错过了什么?

最佳答案

确保您没有在启动应用程序时进行调试。要进行即时编译,应用必须在未调试的情况下启动。

关于asp.net-core - 保存时编译不适用于 VS 2015 RC 中的 ASP.NET 5 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29992794/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com