不支持的重复项目不断重新出现

发布于 2024-12-23 02:46:44 字数 242 浏览 2 评论 0原文

我不断收到下面的错误,每次我都需要删除指定的文件来修复它。当我使用设计器时会发生这种情况。

指定了项目“obj\Debug\Supermarket.frmCustomer.resources” 在“资源”参数中多次。重复的项目不是 由“资源”参数支持。超市

有没有永久的解决方案来解决这个问题,因为我使用 Visual Studio 设计器编辑的任何表单都会发生这种情况?

I keep getting this error below, and each time I need to delete the file specified to fix it. This happens when I use the designer.

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

Is there any permanent solution to this, as it happens to any of the form I edit using the Visual Studio designer?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

初心未许 2024-12-30 02:46:44

我找到了问题的解决方案!我只是创建了另一个项目并导入了所有的类和资源。

I found the solution to the problem! I simply created another project and imported all my classes and resources.

白昼 2024-12-30 02:46:44

您在解决方案中复制文件,在表单设计器中打开它并重命名。 VC 重命名所有类,包括旧文件。

  1. 从项目项“Supermarket.frmCustomer.cs”中排除,
  2. 在设计器中打开旧文件并将类重命名为旧名称
  3. 包含到项目项“Supermarket.frmCustomer.cs”中

You copy file in solution, open it in form designer and rename it. VC rename ALL classes, include OLD file.

  1. Exclude from Project item "Supermarket.frmCustomer.cs"
  2. open old file in designer and rename class to old name
  3. Include to Project item "Supermarket.frmCustomer.cs"
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文