flavour404
flavour404

Reputation: 6312

Visual Studio 2008 - Images copied in explorer do not show up in Solution Explorer

I have created a new folder in my project, aptly named 'images'. I have copy and pasted my images into the folder via explorer, but how do I get them to show up in studio, so when I do img tags or whatever I get the src... dropdown and I can navigate to the image that I want?

Ok, I have followed the advice and now have the folder and all the images within it visible to my project. I'm actually following a tutorial about creating a login page etc for a web project. It all works and now I am working on layout. I have added an image tag to my login page, as simple as , the src is correct, the image is definitely there, but the image will not show up on the page, why??

I must be suffering from 'lack of brains friday' syndrome because this has got me stumped!

It works on the other pages in the project, but not the Login.aspx page!

Thanks.

Upvotes: 2

Views: 3147

Answers (7)

HO LI Pin
HO LI Pin

Reputation: 1681

Face the same issue on Visual Studio 2017 , and fix the issue using below button that located on Solution explorer.

enter image description here

Upvotes: 1

J.B.
J.B.

Reputation: 278

For future reference, in Visual Studio 2010 at the top of the Solution Explorer window there is a button called "Show All Files". Clicking this will show the files that you have copied into the directory. Then you need to right click on each file and choose "Include in Project".

Upvotes: 0

Fredrik Mörk
Fredrik Mörk

Reputation: 158349

What kind of project is it? It could be that you need to add the files to the project explicitly. In the solution explorer, click the button "Show all files", and the files should show up. Select the newly added files, right-click and select "Include in project".

Upvotes: 1

JamesG
JamesG

Reputation: 388

The files are probably not included in your project...

Menu: Project -> Show all files...

Then select them in the solution explorer, right click and include them in the project. You can turn off "Show all files" after that.

Upvotes: 3

zakster82
zakster82

Reputation: 244

If you are using a web application project you have to manually add them to the project. Right click "images" and Add > Existing Item and choose your new images.

Upvotes: 8

Dan Diplo
Dan Diplo

Reputation: 25349

Or just right-click folder and 'Refresh'.

Upvotes: 0

John Sheehan
John Sheehan

Reputation: 78132

Hit the Refresh button at the top of the solution explorer.

Upvotes: 0

Related Questions