Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2012 does not show folder has been created

I use Microsoft Visual Studio 2012. I first opened my ASP.NET project, then I created some folder as Pages, Views, Sources. But the second I open the project, Visual Studio doesn't show those folders. I cannot view them. If I make a new folder with the same name above, the IDE renders a message that the folder already exists.

Can you help me! Thank you very much!

like image 897
Nguyen Ngoc Hoang Avatar asked Oct 28 '13 15:10

Nguyen Ngoc Hoang


People also ask

How do I show a folder in Visual Studio?

On the Visual Studio menu bar, choose File > Open > Folder, and then browse to the code location. On the context (right-click) menu of a folder containing code, choose the Open in Visual Studio command. Choose the Open Folder link on the start window.

Why can't I add a file or folder in Visual Studio?

If you create a directory or add a file into a directory through Windows Explorer, it will notshow up in Visual Studio. You must either create the file or folder inside Visual Studio or use the Add...dialog for the project to add existing files.

Why are my files not showing up in Visual Studio?

If you create a directory or add a file into a directory through Windows Explorer, it will notshow up in Visual Studio. You must either create the file or folder inside Visual Studio or use the Add...dialog for the project to add existing files. Share Follow answered Oct 28 '13 at 15:48

How do I create a folder in Visual Studio?

Creating folders on the disk does not necessarily mean that they will show up inside a project in Visual Studio, because projects maintain their own folder list. If you want your folders to show up inside a project, you need to create the folders from within Visual Studio (right-click the project and select Add > New Folder).

How do I add files to a project in Visual Studio?

Select The Project Name in Solution Explorer and click Show All Files. Then select the Newly added Folder or Files (Which are in dotted structure) and Right Click -> select Include In Project. Then it will added the newly created file into your local structure(Which are shown in normal structure).


2 Answers

The Visual Studio project does not parallel you filesystem. If you create a directory or add a file into a directory through Windows Explorer, it will not show up in Visual Studio. You must either create the file or folder inside Visual Studio or use the Add... dialog for the project to add existing files.

like image 122
Chris Pratt Avatar answered Oct 06 '22 14:10

Chris Pratt


The simplest solution for me was to recopy the files/directories from the project folder and repaste them on the Visual Studio Solution Explorer panel.

That's it!

Visual Studio will automatically sync file explorer with the Visual Studio file system.

like image 36
Ifeanyi Chukwu Avatar answered Oct 06 '22 14:10

Ifeanyi Chukwu