更改资源文件夹名称而不中断资源? [英] Change Resource Folder Name Without Breaking Resources?

查看:81
本文介绍了更改资源文件夹名称而不中断资源?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道资源文件夹名称是否可以更改?

does anybody know if resource folders name can be changed?

我想重命名resources.resx和resources文件夹内容。

I want to rename the resources.resx and resources folder to content.

没什么大不了的,但它让事情看起来更好,这就是我想知道的原因。 

not much of a big deal but it makes things look nicer thats why I was wondering. 

推荐答案

您好Shadowbitz16,

Hi Shadowbitz16,

是的,您可以重命名资源文件名,右键单击资源文件---选择重命名---输入新资源名称 - -choose Project并选择Rebuild,现在你将在错误列表中收到一条错误消息,双击此错误,你会看到Resources.resx,你需要使用旧的Resources文件名重新命名资源文件名。

Yes, you can rename resources file name, right-click Resources file---choose Rename---enter New Resources Name---choose Project and choose Rebuild, now you will get one error message in error list, double- click this error, you will see Resources.resx, you need to replcae Resource file name using old Resources file name.

例如,我有这个资源文件名资源,

For example, I have this Resources file name Resources,

现在我右键单击Resources文件并选择Rename进入NewResources,然后右键单击project并选择Rebuild,我将收到以下错误

now I right-click Resources file and choose Rename to enter NewResources, then I right-click project and choose Rebuild, I will get the following error.

你需要加倍 - 单击此错误消息,您将看到Resources.resx,并修改资源名称。

You need to double-click this error message, and you will see Resources.resx, and modify Resources name.

旧资源文件:

新资源文件:

< img alt =""src ="https://social.msdn.microsoft.com/Forums/getfile/1228762">

最佳此致,

Cherry


这篇关于更改资源文件夹名称而不中断资源?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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