该项目是指定比&QUOT一次;资源与QUOT;参数。资源与QUOT;重复的项目不被&QUOT支撑;参数 [英] The item was specified more than once in the "Resources" parameter. Duplicate items are not supported by the "Resources" parameter

查看:142
本文介绍了该项目是指定比&QUOT一次;资源与QUOT;参数。资源与QUOT;重复的项目不被&QUOT支撑;参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在编写我的Visual Studio C#项目,我收到以下错误:



项目obj\Debug\SampleProject。 Forms.MDIMain.resources指定不止一次在资源参数。重复的项目不是由资源参数的支持。



不过我已经搜索互联网上的很多,但没有一个解决方案的工作对我来说



我试图删除表格,并重新添加到项目中,但它不为我工作。



我只有一个 RESX 文件。



我使用VS 2010。



另外,我尝试以下解决方案,但它不是为我工作:




  1. http://stackoverflow.com/a/7928191/2074603

  2. http://stackoverflow.com/a/10066009


解决方案

最近,我有这个问题,我想我想通了,我的具体情况,所以也许它会帮助你。



我曾使用Visual Studio IDE中复制现有的形式(姑且称之为 Form1中)。我粘贴入同一个项目(它到达时 Form1的复制



我那么重命名的新副本窗体2



我花了一段时间,但我最终发现IDE已经改名为两个 Form1中 Form1的复制窗体2



的文件名是正确的...只是实际的类中被命名。



我手动重命名的原始回到正确的类的的,它的工作。


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. http://stackoverflow.com/a/7928191/2074603
  2. http://stackoverflow.com/a/10066009

解决方案

I had this problem recently, and I think I figured out my particular situation, so maybe it will help you.

I had used the Visual Studio IDE to copy an existing form (let's call it Form1). I pasted it into the same project (it arrived as Copy of Form1)

I then renamed that new copy to Form2.

It took me a while, but I eventually found that the IDE had renamed both Form1 and Copy of Form1 to Form2

The filenames were correct... just the actual classes inside were named.

I manually renamed the original back to the proper class and voila, it worked.

这篇关于该项目是指定比&QUOT一次;资源与QUOT;参数。资源与QUOT;重复的项目不被&QUOT支撑;参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆