Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
不确定为什么对资源文件禁用访问修饰符下拉菜单。
替代文字 http://img683.imageshack.us/img683/9157/accessmodifier.png
以下是文件属性:
替代文字 http://img199.imageshack.us/img199/3930/resxprop.png
如果可能,请将您的自定义工具改回默认的“ResXFileCodeGenerator”。
我尝试将默认 Web 应用程序项目更改为使用“GlobalResourceProxyGenerator”,这导致访问修饰符下拉菜单被禁用。
Alt+Enter
PublicResXFileCodeGenerator
现在它起作用了。