Asp.net mvc 资源文件夹在MVC应用程序中不可访问

Asp.net mvc 资源文件夹在MVC应用程序中不可访问,asp.net-mvc,visual-studio-2010,Asp.net Mvc,Visual Studio 2010,我在MVC 3中创建了一个应用程序,并添加了一个文件夹[Resources]。 文件夹包含.resx文件。但当我在视图中使用.resx文件时,并没有intellisense 编译器抛出了一个错误=> CS0234: The type or namespace name 'Resources' does not exist in the namespace 'MyApp.web' (are you missing an assembly reference?) 我在view=>@MyApp.we

我在MVC 3中创建了一个应用程序,并添加了一个文件夹[Resources]。 文件夹包含.resx文件。但当我在视图中使用.resx文件时,并没有intellisense 编译器抛出了一个错误=>

CS0234: The type or namespace name 'Resources' does not exist in the namespace 'MyApp.web' (are you missing an assembly reference?)
我在view=>
@MyApp.web.Resources.Index.Heading中使用它


index=Resx文件名,Heading=KeyName

资源类型必须是公共的(访问修饰符选项设置为public