Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试为页面生成本地资源文件。我成功生成了一些,但是其中一个页面没有生成资源文件,在输出中显示一条消息:“开始创建资源内容并将'元'属性添加到服务器控件和指令。找不到资源编写器。完成创建资源内容并添加“元”属性。”
App_LocalResources 文件夹已存在于父文件夹中,但已从项目中排除,因此它没有生成 resx 文件。我所要做的就是将文件夹重新包含到项目中。
尝试在web.config中添加/更改全球化属性,然后验证。
<system.web> <globalization enableClientBasedCulture="true" culture="auto" uiCulture="auto"/> </system.web>
希望这可以帮助!