开发者

VS Express (C#) difference between Properties>Resources.resx and Resources1.resx

I am curious what is the difference between those two? I was able to add resources to both of them. In the 开发者_如何学JAVAproject properties menu, when I click on resources, the content of the first one is displayed. Why there are by default both? The same with settings. Thanks!


Visual Studio turns to suggest you store all resources into Properties>Resources.resx. But you can feel free to add your own resources, such as Resources1.resx in the project folder. They will be compiled separately, and does not conflict with each other.

But it is a good practice to use only one resx file per project IMHO.


Properties>Resources.resx is the default (global) resource folder. Your Resources1.resx is only a reference to it. Unless you've defined another resource folder manually.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜