We have a ASP.NET MVC with 4-5 different build configurations. Whenever we change the build configuration, we need to delete the obj folder for the web project, since we get
I just answered a similar question here. To recap, I ran into this problem in one of our MVC projects, and it was due to having the MvcBuildViews
property in the project file set to true
. Setting the property to false
fixed the problem.
false
I also found this answer which outlines an alternative that does not require turning off view building.