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

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

    Looks like a bug in VS code's OmniSharp.

    Solution for me was to execute command "Restart OmniSharp".

    Just do: - ctr shift P - type "Restart OmniSharp" .. hit enter

    This fixed it for me.

提交回复
热议问题