Additional scripts in an empty MVC5 project

When I create an empty MVC5 project and add a controller and view, Visual Studio adds some scripts at the end of the HTML source, for example:

script id="__browserLink_initializationData" type="application/json">
{"appName":"Firefox","requestId":"bbb87a70d7564b28910b9fcf0801a4c6"}
</script>
<script async="async" src="http://localhost:63975/5e85be16690c40b598a8d96a30562d1b/browserLink" type="text/javascript">
Reload the page to get source for: http://localhost:63975/5e85be16690c40b598a8d96a30562d1b/browserLink
</script>

Can someone tell me what it is and how can I remove it?

+4
source share
1 answer

Browser link - debugging assistant in Visual Studio 2013 - HTML code is entered by the HTTP module when requesting pages. It is enabled only in debug mode (i.e. <compilation debug="true" />) - and only when launched from Visual Studio.

, , Visual Studio .

. , : ASP.NET -

( ) :

  • web.config( , ):

    <system.web>
      <compilation debug="false" targetFramework="4.5.1" />
      ...
    </system.web>
    
  • web.config, , debug="true":

    <appSettings>
       <add key="vs:EnableBrowserLink" value="false"/>
       ...
    </appSettings>
    
  • " " " " - ( , ) Visual Studio - , : enter image description here

+3

Source: https://habr.com/ru/post/1530815/


All Articles