MvcBuildViews true with Entity Framework in ASP.NET MVC 2

前端 未结 6 843
伪装坚强ぢ
伪装坚强ぢ 2020-12-05 12:51

In VS 2010, changing true in a MVC2 project\'s .csproj file causes an error if you are using Entity Framework.

<
6条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-05 13:49

    I had a similar error when setting MvcBuildViews="true" which had to do with the build finding multiple web.configs due to build temp files and simply not liking it.

    It's a totally different error, but I have a sneaky suspicion that they could be related...

    You can find the original question I had here and then the solution outlined here.

    The solution basically gets you to change where the output path is for you builds... so you need to add to your website's csproj file.

    E.g.

    
      
        ...BLAH...
        ..\TempBuildOutput
      
      ...A WHOLE LOTTA BLAH...
    
    

    HTHs,
    Charles

提交回复
热议问题