有没有办法可以在程序集中公开 My.Resources 以便我可以在引用该程序集的项目中使用强类型资源?
在程序集中,我可以像这样访问资源文件“RunTimeStrings”:
My.Resources.RunTimeStrings.PowerOn
以适当的文化返回“Power is On”字符串,但我希望能够从外部应用程序访问它。
我尝试将资源文件公开为共享的只读属性:
Return My.Resources.RunTimeStrings
但这给出了错误Error 53 'RunTimeStrings' is a type and cannot be used as an expression