找不到Form1.resx [英] Form1.resx cannot be found

查看:151
本文介绍了找不到Form1.resx的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经制作了几个Winform项目c#,MS Access数据库都运行正常。



现在一段时间后他们没有运行我把它们放在外部驱动器上。错误



我得到的是Form1.resx无法找到。我已经找到了答案,但没有找到答案。



Form1.resx上发生了什么黄色三角形?



项目目录中不存在Form1.resx项。它可能已被移动,重命名或删除。



我尝试过:



我搜索了高低,但发现没有回答。

I have made several Winform projects c# with a MS Access database all worked fine.

Now after time they dont run I have them on a external drive. The error

I get is Form1.resx cannot be found. I have searched for an answer but found none.

what happen to Form1.resx it has the yellow triangle on it?

The item Form1.resx does not exist in the project directory. It may have been moved, renamed or deleted.

What I have tried:

I have searched high and low but found not answer.

推荐答案

我认为这篇文章可能有所帮助。听起来像resx文件的声音丢失,你想知道如何重新生成它?



打开Form1,右键单击Properties,查找Localizable属性,将其转为是,然后是假。您应该会看到正在生成一个新的Form1.resx文件。



但是之前的内容是什么,这是一个不同的故事。这就是为什么我们都应该将代码签入存储库。



.net - 有没有办法重新生成丢失的.resx文件? - 堆栈溢出 [ ^ ]
I think this post might help. Sound like the resx file is missing and you want to know how to regenerate it?

Open the Form1, right click Properties, look for the Localizable property, turn it to true then to False. You should see a new Form1.resx file being generated.

But what are the contents in it previously, that a different story. That why we all should check in the code into a repository.

.net - Is there a way to regenerate a missing .resx file? - Stack Overflow[^]


图标和位图之类的东西存储在XML格式的.resx文件中,如果你想要你可以打开它使用文本编辑器。

如果表单.resx文件消失,您可以尝试删除对它的所有引用,因为可能的嫌疑人是图标和位图,但各种事情都可能在其中。

过去我在升级旧解决方案时也遇到过.resx文件的困难,但是很久以前我不记得我采取了修复它的步骤,但它很复杂。 br />
也许从头开始创建一个新表格会更容易......
Things like icons and bitmaps are stored in the forms .resx file which is in XML format, if you want you can open it with a text editor.
If the forms .resx file is gone you could try to remove all references to it, as said likely suspects are icons and bitmaps, but all kinds of things could be in it.
In the past I also experienced difficulties with .resx files when upgrading older solutions, but that is so long ago that I can't remember the steps I took to fix it, it was complicated however.
Maybe it would be easier to create a new form from scratch ...


这篇关于找不到Form1.resx的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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