we just migrated to vs2019 and when we try to use F12/"Go To Definition" we are getting "Cannot navigate to the symbol under the caret". F12 seems to work for variables that are defined inside the same file but is failing when trying to go to definitions that are in a different project.
This is happening only on some of the projects inside the same solution. both working and non working projects have the same Target Framework of 4.7.2.
all projects are still compiling properly and as far as we can tell this is the only symptom.
I have tried clearing the symbols cache, deleting the .vs hidden folder, cleaning and rebuilding the solutions. deleting the bin and obj folders and rebuilding. but no luck.
Update "Microsoft.Net.Compilers" in Manage Nuget Packages for Solution. This worked for me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With