Two output file names resolved to the same output

后端 未结 21 972
攒了一身酷
攒了一身酷 2020-12-13 23:50

Recently I created new Form called WorkersScreen. When I try to run the project I got this error:

Error 1 Two output file nam

21条回答
  •  感动是毒
    2020-12-14 00:14

    This can happen in the event of two .resx files pointing to the same form. Mostly happens when renaming forms (other reasons may apply, I'm not exactly sure)

    If your particular form files looks like this:

    Form1.cs
    Form1.designer.cs
    MyFormerFormName.resx
    Form1.resx
    

    then that usually implies that you renamed the form but Visual Studio didn't remove the old .resx file. Once you delete the file (in this example MyFormerFormName.resx) manually, the error should be gone upon next build.

提交回复
热议问题