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

后端 未结 29 1365
深忆病人
深忆病人 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:03

    This error happened to me when I was using Visual Studio Code. I think it must have been because I was trying to build a project while there was an executable running in the same bin\debug folder. I stopped the executable, closed the folder, reopened, rebuilt, and the error went away.

提交回复
热议问题