开发者

Problem in reading string resources kept in different assembly having resx files

开发者 https://www.devze.com 2023-02-01 07:34 出处:网络
I have string resources defined in \'resx\' files in the separate assembly. The project reference to that assembly is added to my WinForm project.The project reference is added correctly and I can acc

I have string resources defined in 'resx' files in the separate assembly. The project reference to that assembly is added to my WinForm project. The project reference is added correctly and I can access string at the coding time. However, at run time it returns NULL for the strings I refer. I am trying to show the string as a开发者_Go百科 message in message box.

When I see the resource string in Quick Watch it says: "The name does not exist in the current context."

What may be going wrong?


This problem is solved. There was a problem in code where i was reading resource file. The string ID used to read the resource string was wrong.

0

精彩评论

暂无评论...
验证码 换一张
取 消