VisualStudio is crashing | “System.InvalidCastException” in Microsoft.CodeAnalysis.Workspaces.dll
djonasdev opened this issue · 3 comments
I have a simple WPF app where I have included the QtSharp library.
The problem is that my VisualStudio 2017 v15.5.7 is crashing whenever it tries to load the QtSharp DLLs for it's intelliSense. Somebody know how to prevent crashing or ignoring f.e. a System.InvalidCastException? I have already stoppped ReSharper to exlude this. The following Screenshot and StackTrace is shown when I inject a debugger (See link).
It's a very strange behavior because on some methods or overloads it's working like a charm without any problems and after some minutes or (for example) if using the AddWidget() method it crashes.
Best Regards
Dominic
Please try upgrading Visual Studio and see if you still get this.
My colleague has successfully opened my sample app. But he has installed Qt 5.9.4. I had installed 5.10.1. Will update this comment, when I have tested it with the "new" version.
It works!
Problem was to use v5.10.1