0
我的Asp.Net Mvc 4項目中有一個名爲Res.en.resx
的資源文件。如果使用文化前綴命名的資源文件不存在,資源名稱空間不存在
在視圖中我試圖像這樣訪問它的屬性:@MvcApp.Resources.Res.Title
,但我發現了以下錯誤:
The type or namespace name 'Resources' does not exist in the namespace 'MvcApp' (are you missing an assembly reference?)
如果我改變資源名稱Res.resx
一切工作正常。
這是怎麼發生的?