Opened Visual Studio (version 2015) this morning to carry on with a web app I'm working on and in my Razor views I m getting red squigglys all over the place. Looking in the error console, there are numerous errors but the stand out one is...
Encountered an unexpected error when attempting to resolve tag helper directive '@addTagHelper' with value 'Microsoft.AspNet.Mvc.Razor.TagHelpers.UrlResolutionTagHelper, Microsoft.AspNet.Mvc.Razor'. Error: Object reference not set to an instance of an object.
The web app builds and runs fine so I can continue developing, but its annoying and it will make it difficult to errors when working in views.
Any ideas on how I can resolve this?
I had this issue myself. It can be easily solved by deleting the following directory and then restarting Visual Studio
Try this, should work