Why do I randomly get a “error to use section registered as allowDefinition='MachineToApplication'” when building an MVC project?

前端 未结 4 1257
长发绾君心
长发绾君心 2021-02-07 09:49

I have seen a few questions on SO about a similar error when deploying a website, but I seem to randomly get this error when building an ASP.NET MVC website in

4条回答
  •  清歌不尽
    2021-02-07 10:45

    You can safely put this target build at the end of your .csproj file and leave MvcBuildViews to true.

    It deletes the obj folder before starting the build...

      
        
        
      
    

提交回复
热议问题