当我在文件名中添加区域性时,我的全局资源设计器文件为空 [英] My global resource designer file is empty when I add culture to the file name

查看:63
本文介绍了当我在文件名中添加区域性时,我的全局资源设计器文件为空的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编写具有多语言支持的asp.net Web应用程序.我想向App_GlobalResources文件添加一个名为"GlobalStrings"的资源.当我将文件命名为GlobalStrings.resx时,一切都很好.但是,当我添加一个名为GlobalStrings.en-US.resx的文件时,其背后的设计器文件为空(完全没有文本),在智能感知中什么也没有出现.有什么想法吗?

I am writing a asp.net web application with multi-language support. I want to add a resource to the App_GlobalResources file called "GlobalStrings". When I name the file GlobalStrings.resx, everything is fine. But when I add a file called GlobalStrings.en-US.resx the designer file behind it is empty (no text at all) an nothing appears in intellisense. Any ideas?

推荐答案

要解决的问题是,必须有一个资源文件(默认)而不添加区域性.

The deal is that there must be one resource file (default) without culture added.

这篇关于当我在文件名中添加区域性时,我的全局资源设计器文件为空的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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