Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot navigate to the symbol under the caret

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.

like image 542
NicoTek Avatar asked Sep 14 '25 06:09

NicoTek


1 Answers

Update "Microsoft.Net.Compilers" in Manage Nuget Packages for Solution. This worked for me.

like image 59
Trinadh Avatar answered Sep 15 '25 20:09

Trinadh