VS2010出现重复的代码项原因及解决方式

来源:互联网 发布:js new date(s) 编辑:程序博客网 时间:2024/05/21 10:32

Error 243 

The item "obj\Debug\******.resources" was specified more than once in the "Resources" parameter.  

Duplicate items are not supported by the "Resources" parameter.


出现该错误的原因一般是复制了一个表单Form1,然后直接粘贴到当前项目下copy of Form1,然后将该表单名改为Form2,这样只有新生成的表单文件名改成了Form2,Form2的资源文件及类名都没有更改,仍为Form1,只要将Form2文件内的类名及相关的构造函数名改为Form1,问题就解决了。



阅读全文
0 0
原创粉丝点击