RookieStacker
RookieStacker

Reputation: 37

Resources folder is not accessible in MVC application

I have created an application in MVC 3 and added a folder [Resources]. Folder contains .resx files. But when i used .resx file in view there was no intellisense and compiler threw an error =>

CS0234: The type or namespace name 'Resources' does not exist in the namespace 'MyApp.web' (are you missing an assembly reference?)

i was using it in view => <h1>@MyApp.web.Resources.Index.Heading</h1>

index= Resx file Name, Heading=KeyName

Upvotes: 1

Views: 883

Answers (1)

archil
archil

Reputation: 39491

Resource type must be public (Access modifier option set to public)

Upvotes: 2

Related Questions