0

我是 VS 2013 的新手,最近被介绍了一个名为 Browser Link 的功能。我认为这是微软提供的一个很棒的功能。

我无法获得连接。按照我做的步骤

  • 创建了一个新的 Empty MVC 项目
  • 创建了一个控制器主页和操作索引
  • 创建了一个视图 Index.cshtml。
  • 解决方案处于调试模式。
  • 运行解决方案。

未建立连接

以下是项目的 web.config 设置

<?xml version="1.0" encoding="utf-8"?>
<!--
  For more information on how to configure your ASP.NET application,     please visit
  http://go.microsoft.com/fwlink/?LinkId=301880
  -->
<configuration>
  <appSettings>
    <add key="webpages:Version" value="3.0.0.0" />
    <add key="webpages:Enabled" value="false" />
    <add key="ClientValidationEnabled" value="true" />
    <add key="UnobtrusiveJavaScriptEnabled" value="true" />
  </appSettings>
  <system.web>
    <compilation debug="true" targetFramework="4.5.1" />
    <httpRuntime targetFramework="4.5.1" />
  </system.web>
</configuration>

我已经完成了微软在其网站http://go.microsoft.com/fwlink/?LinkId=313770上解释的过程。

4

1 回答 1

0

要注册 Page Inspector 的运行时,将以下行添加到您的 web.config。

<system.web>
    <compilation debug="true" targetFramework="4.5.1">
      <assemblies>
         <add assembly="Microsoft.VisualStudio.Web.PageInspector.Loader,Version=1.0.0.0, Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a"/>
于 2016-06-08T10:09:31.417 回答