我在Visual Studio中将“启用浏览器链接菜单”设置为false false,但是,我仍然在Chrome控制台中看到此错误消息。
[09:21:58 GMT+1000 (AUS Eastern Standard Time)] Browser Link: Exception thrown when trying to invoke Browser Link extension callback "madskristensen.editorextensions.browserlink.unusedcss.unusedcssextensionfactory.GetIgnoreList":
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at MadsKristensen.EditorExtensions.BrowserLink.UnusedCss.UnusedCssExtension.GetIgnoreList()
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Microsoft.VisualStudio.Web.BrowserLink.ClientMessaging.DispatchMessage(BrowserLinkConnection connection, MessageArgs obj)
这是我在禁用浏览器链接后的唯一抱怨,几乎每次我在控制台日志视图中打开开发人员工具时都会在我的控制台中看到此消息。
我尝试过查找扩展程序(chrome://extensions/
)或插件(chrome://plugins/
),但未列出。
答案 0 :(得分:6)
根据Web Essentials提出的问题 https://github.com/madskristensen/WebEssentials2013/issues/550
解决方案是禁用Visual Studio的浏览器链接。
我只能通过工具栏执行此操作。
答案 1 :(得分:1)
Voila !!你的问题解决了