Can you turn off Visual Studio 2013 Browser Link on a page by page basis

断了今生、忘了曾经 提交于 2019-12-01 17:21:47

问题


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.

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?


回答1:


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>


来源:https://stackoverflow.com/questions/27432670/can-you-turn-off-visual-studio-2013-browser-link-on-a-page-by-page-basis

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!