Error: The type exists in both directories

前端 未结 19 2061
北恋
北恋 2020-12-14 14:13

In a MVC2 project I moved a file from App_code to Content folder and compiled it. Then move it back again to App_Code and then changed its Build Action to \"Compile\". Now I

19条回答
  •  余生分开走
    2020-12-14 14:45

    In the Web Application(not Web Site), I change App_Code*.cs Build Action(file properties) from Compile to Content. then the problem solve.

提交回复
热议问题