您的位置:首页 > 其它

如何禁用Visual Studio 2013的Browser Link功能

2016-03-29 14:30 681 查看
http://my.oschina.net/ind/blog/359003

摘要 Visual
Studio 2013中在IE浏览器浏览localhost网站时候,发现会不断有下面链接的请求,这个是怎么回事,有谁知道吗? http://localhost:3003/924f1c4a82274f41b91d9bc86d718879/arterySignalR/poll?transport=longPolling...............
VS2013新增的Browser Link功能虽然“强大”,但我并不需要。

但默认是开启的,会在页面中自动添加如下的代码,真是烦人!

?
如何干掉Browser Link功能?还我干净的页面代码。

check the msdn blog:(even though I'm not using vs
http://blogs.msdn.com/b/webdev/archive/2013/06/28/browser-link-feature-in-visual-studio-preview-2013.aspx
. How do I turn off Browser Link?

You can uncheck “Enable Browser Link” and it will be turned off “ Browser Link” for all future requests made.





You can also use the following appsettings in your web.config file.

1. Set appSetting “vs:EnableBrowserLink” to “false ““. This will disable Browser Link.





2. Set debug= false in web.config file. This will also disable Browser Link. Note that debug= true is required for Browser Link feature to work.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: