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

后端 未结 29 1406
深忆病人
深忆病人 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-05 00:06

    If you are using different aspx.cs files that define classes of the same name you can use

    
    

    under in your web.config file.

    Although I would still strongly advise that you would change the class name.

提交回复
热议问题