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

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

    Ran Into the Same Error

    • Using VS Code 2015
    • Loading in .png image files through the Resource Tab in Project > My Project
    • Making a custom button class with reference to the files in Resource

    Solution path

    1. Deleted all the references to the resources in the Resources Tab with [X Remove Resources] and Deleted all the Resources in the file Solution > Project > Resources.
    2. Re-uploaded the .png files through the [add resource] dropdown, loaded files instead of drag and drop.
    3. Renamed file with no underscore (this might be extraneous).
    4. Rebuilt solution

提交回复
热议问题