【发布时间】:2015-10-19 09:59:05
【问题描述】:
我在我的 webapp wwwroot/Resources 文件夹中创建了 Resources.resx 文件。
当我尝试以 @Resources.SomeValue 的身份在剃须刀视图中使用它时,出现错误
The name 'Resources' does not exist in the current context
当我将文件移动到wwwroot 文件夹时,我可以使用资源。
我尝试使用@Resources/Resources.SomeValue,但我遇到了同样的错误
有没有办法将此文件从根文件夹移到某处?
【问题讨论】:
标签: asp.net asp.net-mvc razor