my app is WPF (VS 2017). I want to add an image to the project and I need to use a relative path, in order to have that included in the app when it is published. (There was a similar question here and I would be happy if the answers would work for me.)
The thing is that I cannot add an “existing item” when the folder to keep it resides further down in the solution explorer (past “Properties” and “Referencies”). Unlike in UWP, files like image files do not appear when browsing. On the other hand, when adding a folder right under the solution header in the solution explorer I can add an existing item. But the image file in my case then does not have any other properties than name and size, nothing to set there. But as I have learned from the answers I mentioned, “Build Action” must be set. And indeed, the source path is not recognized.
In the UWP, the properties of an image file show all these, like “Build Action” and so on. Seems to be a shy deer… Any idea what is wrong? Thanks in advance for any help!