I have a resource file in a different project and want to access eg. strings from it. How can i do this?
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
- How to know full paths to DLL's from .csproj f
Make your access modifier to public .
This is a super old question, but since it has not been answered and I just stumbled upon this problem, here are some possible solutions:
Make sure that the access modifier of the resx is set to public!
Link to the resx file
See here
Then you either acces the string directly with
or via ResourceManager
Direct access when you have a reference to the project