1. Open MVC project file using a notepad
Project files have the extension of .csproj or .vbproj
2. Search for MvcBuildViews under ProportyGroup
MvcBuildViews is false by default.
Turn this to true <MvcBuildViews>true</MvcBuildViews>
3. Save the changes