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

Jitendra Kumar Rajbhar picture Jitendra Kumar Rajbhar · Feb 15, 2013 · Viewed 32.3k times · Source

While compiling my Visual Studio C# project, i am getting the following error:

The item "obj\Debug\SampleProject.Forms.MDIMain.resources" was specified more than once in the "Resources" parameter. Duplicate items are not supported by the "Resources" parameter.

However i have searched a lot on internet but none of the solution worked for me.

I tried to delete the form and re-added it into the project, but it doesn't work for me.

I only have one resx file.

I am using VS 2010.

Also, i tried the following solutions but it not worked for me:

  1. https://stackoverflow.com/a/7928191/2074603
  2. https://stackoverflow.com/a/10066009

Answer

Marcelo Lujan picture Marcelo Lujan · May 31, 2016

Easy!

  1. Right-click your project and select "Unload Project"

  2. Right-click again and "Edit your_project.csproj"

  3. Search for the duplicate files mentioned in the error message and remove them.

  4. Save and close.

  5. Right-click to choose "Reload Project" view image