今天 Visual Studio 2019 突然出现奇怪问题,每次 Go To Implementation
(Ctrl + F12)总是出现错误提示exception has been thrown by the target of an invocation
,请问如何解决?
在 Visual Studio Developer Community 上找到了线索:
I can confirm that it only happens when selecting Go To Implementation (Ctrl+F12) from a file that is open in the preview window. If selected from the same file open in a normal window the exception pop up does not show.
在 Options -> Environment -> Tabs and Windows 中禁用 Preview Tab 可以避开这个问题