新手:在“资源”中找不到副本(xxx.Form1.resources)。参数,请帮忙。 [英] newbie: Can't find the duplicate (xxx.Form1.resources) in "Resources" parameter, help please.
问题描述
使用C#和最新的VS 2005. 仅针对每种组合进行搜索,并对此错误信息进行扭曲。 当我尝试"从现有代码创建项目时"就会发生这种情况。 还没有找到这个终极问题的答案(42,不起作用。) 可能是一个非常基本的东西,但我现在还缺少它。 Using C# and the latest VS 2005. Hunted for just about every combination and twist on this error information. This happens when I try to 'create project from existing code.' Haven't yet found the answer for this Ultimate Question (42, doesn't work.) Probably a very fundamental thing but I'm missing it as yet. 完成构建项目"Webcam_Test.csproj" - 失败。 Done building project "Webcam_Test.csproj" -- FAILED. 这篇关于新手:在“资源”中找不到副本(xxx.Form1.resources)。参数,请帮忙。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
输出
C:\ WINDOWS \ Microsoft。 NET\Framework\v2.0.50727\Microsoft.CSHARP.Targets(147,9):错误MSB3105:项目"obj \Debug \Webcam_Test.Form1.resources"在"资源"中多次指定参数。 "Resources"参数不支持重复项目。
Output
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.CSHARP.Targets(147,9): error MSB3105: The item "obj\Debug\Webcam_Test.Form1.resources" was specified more than once in the "Resources" parameter. Duplicate items are not supported by the "Resources" parameter.
错误列表> "资源"参数中多次指定了项目"obj\Debug \Webcam_Test.Form1.resources"。 "资源"参数不支持重复项目。
Error List
The item "obj\Debug\Webcam_Test.Form1.resources" was specified more than once in the "Resources" parameter. Duplicate items are not supported by the "Resources" parameter.推荐答案
制作确保解决方案资源管理器中的Form1下只有1个.resx。
当我重命名该表单的文件时发生了这种情况。 它创建了一个新的.resx而不删除旧的。
Make sure there is only 1 .resx under your Form1 in the solution explorer.
This happened to me when I renamed the file for the form. It created a new .resx without removing the old one.