How to fix “namespace x already contains a definition for x” error? Happened after converting to VS2010

后端 未结 29 1458
深忆病人
深忆病人 2020-12-04 23:10

Specifically the error occurs in the Resources.Designer.cs:

Error 2 The namespace \'ModulusFE\' already contains a definition for \'Sto

29条回答
  •  天涯浪人
    2020-12-04 23:53

    The way I solved it was to remove all of the enums from the model browser, and then re-add them again. Somehow miraculously the tool regenerated everything perfectly and the error message went away (I'm using VS2012, FYI).

提交回复
热议问题