Good Day
I am new to Visual Studio and I just added a folder to my project by right clicking on the project and adding a new folder. Now I added the image to the folder(copy paste in windows), but the solution explorer is not showing my added image...I did refresh the solution as well. Also, in that folder, there is no option of adding an image, only Visual Studio files(new items etc)..
Why isn't Solution Explorer showing my image?
You just need to have an existing file, open the context menu on your folder , and then choose
Add
=>Existing item...
If you have the file already placed within your project structure, but it is not yet included, you can do so by making them visible in the solution explorer
and then include them via the file context menu
Click on the Project in Visual Studio and then click on the button titled "Show all files" on the Solution Explorer toolbar. That will show files that aren't in the project. Now you'll see that image, right click in it, and select "Include in project" and that will add the image to the project!
You need to turn on
Show All Files
option on solution pane toolbar and include this file manually.If you're having an issue where the Resources added are images and are not getting copied to your build folder on compiling. You need to change the "Build Action" to None from Resource ( which is the default) and change the Copy to "If Newer" or "Always" as shown below :