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

http://my.oschina.net/ind/blog/359003
摘要  Visual Studio 2013中在IE浏览器浏览localhost网站时候,发现会不断有下面链接的请求,这个是怎么回事,有谁知道吗? http://localhost:3003/924f1c4a82274f41b91d9bc86d718879/arterySignalR/poll?transport=longPolling...............

VS2013新增的Browser Link功能虽然“强大”,但我并不需要。

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


?
1
2
3
4
<!-- Visual Studio Browser Link -->
<script type= "application/json" id= "__browserLink_initializationData" > { "appName" : "Firefox" , "requestId" : "861592d477c64fd590b602a9f006c074" } </script>
<script type= "text/javascript" src= "http://localhost:2968/f26bea4f8e6a45868431324e7994cd75/browserLink" async= "async" >
</script> <!-- End 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.

image

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

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

image

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.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值