File is not part of the project or Build Action not set to "Resource"
===

I get the error

    The file /DocomGUI;component/Resources/logo.jpg is not part of the project or its 'Build Action' property is not set to 'Resource'.

But the `logo.jpg` file is definitely part of the project and the Build Actions is also set to "Resource".

It resides within the `/Resources/` folder in the root of the project and is also in the `Resources.resx` file with the same name.

I tried rebuilding the solution, cleaning it and still, the error pops up. What else could go wrong so that the file can't be found?