我正在尝试使用 以 Debug模式启动我的 Web 应用程序 (asp.net MVC)浏览器链接 在浏览器期间启用编辑操作
但实际上当我尝试这样做时(浏览器链接不起作用,它要求我在 Web.Config 中注册页面检查器)
编辑
当我将以下内容添加到 web.config 时,什么也没有发生
<add key="VisualStudioDesignTime:Enabled" value="true" />
<add key="PageInspector:ServerCodeMappingSupport" value="Enabled"/>
我仍然看不到任何浏览器通过 连接浏览器链接
知道我已启用
debug=true
在 web.config 中<compilation debug="true" targetFramework="4.6" />
并且知道我已经卸载了 Web Essentials 包
最佳答案
在您的 web.config 中添加以下内容:
<appSettings>
<add key="VisualStudioDesignTime:Enabled" value="true" />
<add key="PageInspector:ServerCodeMappingSupport" value="Enabled"/>
</appSettings>
关于asp.net - Visual Studio 中的浏览器链接不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30962597/