How to fix the 'Resources' is not a member of 'My'

后端 未结 23 1179
醉话见心
醉话见心 2021-01-17 09:54

I am using VS2010 and in all of my projects \"My.Resources\" is available and shows all the files that are in the \"resources\" section of the project. In this one project I

23条回答
  •  礼貌的吻别
    2021-01-17 10:25

    After facing the same issue having used a couple of tools to assist in Resource Translation, this is what fixed it for me:

    • Go to "My Project", select the "Resources" tab
    • On top you'll see "Access Modifier"
    • In my case it was set to "(Custom)". Change it to Friend or "Public" (depending on your needs) and the error should be cleared.

    I'm using ResX Resource Manager plug in to assist with the translation. This error seems to keep re appearing whenever I try to manage a resource in Resource Manager while having "My Project" window open. When this happens, ResX Resource Manager throws an error and the My.Resources error re appears. Repeating the procedure above restores things to working condition again.

提交回复
热议问题