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

后端 未结 23 1168
醉话见心
醉话见心 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:43

    How I fixed this: Visual studio points the error to this line: Global.Resources.rptRecal.ResourceManager

    It says can not find rptRecal. I know this file exists, so I just removed the line, type it again, let the "auto complete" feature kick in.

    0 讨论(0)
  • 2021-01-17 10:43

    On your new project:

    1. Go to any button using an image
    2. Go to image
    3. Try to load any image
    4. From import - try to load all your images from the other project

    So - no errors will appear - I applied this in VS2013

    0 讨论(0)
  • 2021-01-17 10:45

    Just remove last file you entered , and build program again "if you need to put that file again , change file location then enter again"

    0 讨论(0)
  • 2021-01-17 10:50

    I had the same error while creating a new solution based on elements (forms, classes, resources, etc.) from another project with different name.

    Since my resources namespace was "My.Resources" as @denis pointed out previously, I tried to regenerate resources namespace by doing right click over "Resources.resx" in solution explorer and click on "Run custom tool"... That displayed a window that shows a message saying that some icons declared in XML were not present in the system.

    Since I did a search and replace on the entire solution looking for the old name and changing to the new one, that affected the XML file where resources are declared. Changing the icon file name did the trick.

    0 讨论(0)
  • 2021-01-17 10:51

    The issue is usually happened because more than one Resource file or folder exits in your project with the same.

    This may be in some other directories .

    Please Rename them with other appropriate names.

    Keep the only one that you use with the name "Resourses"

    0 讨论(0)
提交回复
热议问题