【发布时间】:2013-09-23 19:26:52
【问题描述】:
我正在遵循以下答案来实现全球化。 Globalization in ASP.Net MVC 3
但是,我失败了。
我收到以下行的编译失败错误:
using ViewResources;
我创建了 Resources 文件夹,每个语言环境创建了 2 个资源文件(ViewResources.resx,ViewResources.en.resx),添加了
<add namespace="ViewResources" />
到 Views 文件夹中的 web.config,它像老板一样失败。
Compiler Error Message: CS0246: The type or namespace name 'ViewResources' could not be found (are you missing a using directive or an assembly reference?)
【问题讨论】:
-
“请给我密码。”你是认真的吗?
-
你投了反对票吗? @meagar
标签: c# asp.net-mvc asp.net-mvc-4 internationalization globalization