我已经完成了这里的教程: http://www.asp.net/vnext/overview/aspnet-vnext/getting-started-with-aspnet-vnext-and-visual-studio
我正在按照第2部分中的第7步进行操作——“保持浏览器打开状态,打开Class1.cs并将消息文本更改为“ClassLibrary1的新消息!”
不幸的是,在更改代码后,当我刷新浏览器时它还是和之前一样。我必须重新编译才能使更改生效。
有任何想法吗?我想看到魔法发生!
Windows 7 64位 Microsoft Visual Studio Professional 14 CTP 版本号14.0.21730.1 DP Microsoft .NET Framework 版本4.5.50938
project.json:
{
"dependencies": {
"Helios": "0.1-alpha-build-0585",
"Microsoft.AspNet.Mvc": "0.1-alpha-build-1268",
"Microsoft.AspNet.Identity.Entity": "0.1-alpha-build-1059",
"Microsoft.AspNet.Identity.Security": "0.1-alpha-build-1059",
"Microsoft.AspNet.Security.Cookies": "0.1-alpha-build-0506",
"Microsoft.AspNet.Server.WebListener": "0.1-alpha-build-0520",
"Microsoft.AspNet.StaticFiles": "0.1-alpha-build-0443",
"Microsoft.Data.Entity": "0.1-alpha-build-0863",
"Microsoft.Data.Entity.SqlServer": "0.1-alpha-build-0863",
"Microsoft.Framework.ConfigurationModel.Json": "0.1-alpha-build-0233",
"Microsoft.VisualStudio.Web.BrowserLink.Loader": "14.0-alpha",
"Classlibrary1": ""
},
"commands": {
/* Change the port number when you are self hosting this application */
"web": "Microsoft.AspNet.Hosting --server Microsoft.AspNet.Server.WebListener --server.urls http://localhost:5000"
},
"configurations": {
"net45": {
"dependencies": {
"System.Data": "",
"System.ComponentModel.DataAnnotations": ""
}
},
"k10": {
}
}
}
保罗
ctrl
+shift
+w
(在浏览器中查看)效果最好,因为如果应用程序已经在运行,它不会重新启动。 - Bart Calixto