您能否逐页关闭Visual Studio 2013浏览器链接 [英] Can you turn off Visual Studio 2013 Browser Link on a page by page basis
问题描述
我喜欢Visual Studio 2013浏览器链接的检查器功能.但是,我的页面数量很少,主要是自定义的音频/视频媒体播放器,这导致浏览器每秒发出大量的信号请求...范围在每秒200范围内.因此,我想在那些特定页面上禁用该功能.
I like the inspector feature of Visual Studio 2013 Browser Link. However, I have a small number of pages, mostly custom audio/video Media Players, which cause the browser to make an exorbitant amount of signalr requests per second... in the range of 200 per second. So, I would like to disable the feature on those particular pages.
我知道可以通过将以下密钥放在web.config文件中来在整个应用程序或应用程序的某个部分中将其禁用.
I know it can be disabled accross the entire application or a section of the application by putting the following key in the web.config file.
<add key="vs:EnableBrowserLink" value="true" />
是否可以在单个页面上将其禁用?
Is there a way to disable it on a single page?
推荐答案
将所有Media Player放在一个文件夹中.为该文件夹添加一个自定义的web.config.将密钥添加到web.config.
Put all of your Media Players in one folder. Add a custom web.config for the folder. Add the key to the web.config.
<appSettings>
<add key="vs:EnableBrowserLink" value="false" />
</appSettings>
这篇关于您能否逐页关闭Visual Studio 2013浏览器链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!