You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The only way to get the code to work was to remove %LOCALAPPDATA%\Microsoft\VisualStudio\Roslyn\Cache
The only information stored in that cache relates to indices used for "navigate to", "find references", "add import" and "as nuget package". Nothing in there affects the compiler at all.
That's weird.
I noticed that COM functions returned strange data. And when I stepped in the code with F11, I ended up in the wrong C++ functions. Been troubleshooting this for weeks. But as soon as I deleted the cache directory it started working. There is no information in the cache that it uses to find index in the vtable for COM?
Version Used: Visual studio 2022
Steps to Reproduce:
Expected Behavior:
After that I have rebuilt the C++ code, the interop dll and the C# code, I expect that the C# code should work.
Actual Behavior:
When I call a COM function located after the removed function, it calls the wrong function.
The only way to get the code to work was to remove
%LOCALAPPDATA%\Microsoft\VisualStudio\Roslyn\Cache
The text was updated successfully, but these errors were encountered: