When you create or publish your project, the website is already compiled. Only views are dynamically compiled. If you want your views to be compiled as well, you can edit your web project file. Change this line:
<MvcBuildViews>false</MvcBuildViews>
in
<MvcBuildViews>true</MvcBuildViews>
To be able to edit the project file in the visual studio, you first need to unload the project (right-click, "Unload Project"), and then right-click the project again and select "Edit Project". When you make changes, your views will also be automatically created. This is not what you want to do during development, the build time is significantly increased.
source share