I have a razor .vbhtml view and would like to use string resources normally accessible via My.Resources. Seems like I can only get to My.Computer, My.Log and couple other namespaces from the view, but not My.Resources. I've tried changing access modifier to public and adding @Imports, neither worked.
Thanks
Add a
Messages.resx
file to your project. In the properties of this file in the solution explorer setCustom Tool = PublicResXFileCodeGenerator
. Now inside the view you can directly access resources:And here's a screenshot containing all you need: