After spending a lot of time looking for solution, I come across that for MVC projects, the version of MVC I am using should be installed in the environment. Although if I have added the dll but not installed in environment, the project will work but intellisense won't work.
<dependentAssembly>
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35"/>
<bindingRedirect oldVersion="1.0.0.0-5.2.3.0" newVersion="5.2.3.0"/>
</dependentAssembly>
Here is the fix. Go to web.config. See the
version of MVC you are using and run the following Nuget command to install it.
PM > Install-Package Microsoft.AspNet.Mvc -Version 5.2.3
Version should be the same as mentioned in you web.config or MVC dll you are using.
See link for more information
[
^]