如果当你调试 VSPackages 的时候,跳出一个如下的异常:
"ArgumentException crossed a native/managed boundary"
"Cannot find the requested resource"
Stack Trace
at Microsoft.VisualStudio.CommonIDE.ResourceLoader.FindResource[T](String resourceName, Int32 lcid, Func`2 fnConvert) at Microsoft.VisualStudio.CommonIDE.ResourceLoader.GetBlob(String resourceName, Int32 lcid, Byte[]& bytes, Int32& count)
就目前而言,还不是很清楚原因是什么,不过你可以通过关闭 “Break when an exception crosses AppDomain or managed/native boundaries” 阻止该异常。该选项可以在 Debug / Options and Settings... / General 中找到。
关于此错误的更多信息,请见Please stop throwing "Cannot find the requested resource" exceptions。