allowDefinition='MachineToApplication' msbuild error

后端 未结 12 1554
后悔当初
后悔当初 2020-12-24 10:51

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

12条回答
  •  -上瘾入骨i
    2020-12-24 11:44

    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.

提交回复
热议问题