25

Not sure why Access Modifier drop down is disabled for a Resource file.

alt text http://img683.imageshack.us/img683/9157/accessmodifier.png

Here are file properties:

alt text http://img199.imageshack.us/img199/3930/resxprop.png

dev.e.loper
  • 35,446
  • 76
  • 161
  • 247

2 Answers2

41

If possible, change your Custom Tool back to the default "ResXFileCodeGenerator".

I tried changing a default web app project to use "GlobalResourceProxyGenerator" and it caused the Access Modifier drop down to disable.

Jacob Ewald
  • 2,133
  • 18
  • 19
  • 7
    yeah that does it. you can also set custom tool to PublicResXFileCodeGenerator. http://guysmithferrier.com/post/2008/06/Public-Strongly-Typed-Resources-With-PublicResXFileCodeGenerator.aspx – dev.e.loper Jan 26 '10 at 22:29
  • or just make it empty – Tristan Jul 09 '13 at 07:28
15
  1. Right click on your file resource, choose Properties (Alt+Enter)
  2. Change Build Action to Embedded Resource
  3. Change Custom Tool to PublicResXFileCodeGenerator

Now it works.

Hongbin Wang
  • 1,186
  • 2
  • 14
  • 34
dev1
  • 171
  • 1
  • 5
  • 2
    You might also need to change the "Custom Tool Namespace" in the properties window to Resources, otherwise the paths to the strings change when changing the tool – Lukos Jun 16 '16 at 09:55
  • Of all the various suggestions on the internet, this is the only one I've found that works! The magic ingredient is changing the namespace. ^^^^ – Doug Kent Mar 30 '17 at 16:16