【发布时间】:2015-05-02 05:28:47
【问题描述】:
我刚刚在一台干净的 Win 8.1 机器上安装了 Visual Studio 2015 RC,并从默认模板 Asp .NET 5 Preview Template/Web Site 创建了一个应用程序。
如果我点击运行,Web 应用程序将启动,但更改例如主控制器中的 ViewBag.Message 并不能反映重新加载页面后浏览器中的更改。
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 visual-studio-2015