As @WimOmbelets stated in his 2013's answer, copying a Form is a very sure way to reproduce this annoying error, at least in VS 2017, 2019 and 2022.
As Vince De Giorgio said in his 2019's answer, I too didn't have duplicate .resx or .cs files and I didn't have duplicate ...EmbeddedResource Include= .../> tags in .csproj.
Deleting .resx files (icons gone, obvious) for both involved forms, clean the solution and then restart VS is a poor man's way to solve, because every time I add again an icon or another resource, same annoying error. It is still worse: to recover, I had to Git stash all modifications; if I revert manually all changes, to the point that Git does not recognize any changes, the error continues (!!!) even after cleaning, restarting VS and rebuilding.
To fix the problem in VS 2019 and 2022:
Every time that I want to copy a form, I:
- Exclude Form to be copied from project (exclude, DO NOT DELETE!)
- In Windows Explorer I create a Form's copy and open them (.cs and designer.cs) with Visual Code (whatever)
- In Visual Studio I create Add a New Form with a different name - of course
- Paste back designer.cs and .cs codes from VS code; change namespace, class name and Ctor
- Include again in Project previous Form
- Enjoy
Never more had this problem.