简体   繁体   English

重命名表单并执行一些其他工作后无法编译和运行

[英]Can't compile and run after renaming form and doing some additional work

NOTE: This question has been renamed. 注意:此问题已重命名。 Originally it targeted the fact that I was getting compile errors after deleting VB power pack shapes off my form, but it turned out that while that was when the error occurred, the source of the error was due to a form being renamed and ending up with 2 resx files. 最初,它的目标是我从表单上删除了VB Power Pack形状后出现了编译错误,但事实证明,那是当错误发生时,错误的根源是因为表单被重命名并最终以2个resx文件。 Compilation worked fine until the VB power pack shape was removed though for some reason. 出于某种原因,直到VB电源组件的形状被删除之前,编译工作都很好。

I have a project which was using some Visual Basic Power Pack shapes (just the circles) for some things. 我有一个项目,在某些情况下使用某些Visual Basic Power Pack形状(只是圆圈)。 Anyway, I've noticed they're not supported on one of the servers I'm running on, so I'd like to delete them from the project and use something else. 无论如何,我注意到我运行的其中一台服务器不支持它们,因此我想从项目中删除它们并使用其他东西。

The craziest thing is happening. 最疯狂的事情正在发生。 If I run the project as is, it works great. 如果我按原样运行项目,那么效果很好。 If I, however, delete the shapes and references to them, and try to run again, I get this error: 但是,如果删除形状和对其的引用,然后尝试再次运行,则会收到此错误:

Error 1 The item "obj\\Debug\\WQASymbolComparisonUtility.FRMMessageBox.resources" was specified more than once in the "Resources" parameter. 错误1在“资源”参数中多次指定了项目“ obj \\ Debug \\ WQASymbolComparisonUtility.FRMMessageBox.resources”。 Duplicate items are not supported by the "Resources" parameter. “资源”参数不支持重复项。 WQASymbolComparisonUtility WQASymbolComparisonUtility

I'm completely lost here - What does this error mean and what could it possibly have to do with deleting these power pack components off my form? 我在这里完全迷失了-这个错误是什么意思,从表格中删除这些Power Pack组件可能与它有什么关系?

And yes, deleting these shapes was the only change I made :( 是的,删除这些形状是我所做的唯一更改:(

The problem was that I renamed a form and it actually ended up with two different .resx files. 问题是我重命名了一个表单,实际上它以两个不同的.resx文件结尾。 When I deleted the older .resx file, the issue resolved itself. 当我删除旧的.resx文件时,该问题自行解决。

For some reason, compilation worked fine as was until the VB power pack shape was deleted, at which point the resx conflict manifested. 由于某种原因,编译工作可以正常进行,直到删除了VB Power Pack形状为止,此时出现了resx冲突。 I'm guessing the change was just causing the first recompilation of the affected area of code. 我猜测更改只是导致受影响的代码区域的第一次重新编译。

Renaming question title so this is more helpful to others. 重命名问题标题,这样对其他人更有帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 有些表单提交按钮不起作用,有些则起作用 - Some of the form submit buttons don't work and some do 在某些 windows 中安装 .net 运行时后,我无法运行 wpf 应用程序 - i can't run wpf app after install .net runtime in some windows 重命名MongoDB集合中的字段后,我在C#中的查询不起作用 - After renaming a field in MongoDB collection, my query in c# doesn't work LINQ .ToArray在添加行之前进行一些其他计算 - LINQ .ToArray doing some additional calculations before adding the row 数据库中的一些数据更改。如何触发一些C#代码在这些更改上做一些工作? - Some data changes in the database. How can I trigger some C# code doing some work upon these changes? Excel工作表重命名不起作用 - Excel sheet renaming won't work 模拟后无法GetAccessControl,获取错误 - Can't GetAccessControl After Doing Impersonation, Get Error 重命名计算机后,Visual Studio 2013无法创建新项目 - Visual Studio 2013 can't create new project after renaming computer 无法运行VNCsharp示例工作 - Can't Run VNCsharp sample work 使用ContinueWith或委托运行某些任务后不运行RunOnUiThread - Doesn't run RunOnUiThread after running some Task with ContinueWith or delegate
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM