How to solve a “duplicate items” error in the “Resources” parameter

前端 未结 6 2149
广开言路
广开言路 2021-01-18 02:21

While working on my project, I got this error:

The item \"...\" was specified more than once in the \"Resources\" parameter. Duplicate items are not

6条回答
  •  长发绾君心
    2021-01-18 02:57

    A slightly simpler way ..

    1. Select the form and then right-click and select "Exclude from Project".
    2. Clean and Recompile project
    3. Select the "Show all files" icon on Solution toolbar to show the excluded form files.
    4. Select the form and then right-click and select "Include in Project" to add it back.
    5. Recompile project
    6. Save All to ensure that project file is saved.

    No need to restart Solution or move the form.

提交回复
热议问题