I opened a blank solution in Visual Studio (2010).
I added a folder in solution and within a Html
file.
In Window Explorer, the file is added to the solution level and not within a folder.
Also, it did not created folder at all.
I tried to add the folder manually in Window Explorer and then re-add a file. It did not help still the file is not added to the folder, but at the Solution level.
How can I resolve this?
Open Solution Explorer If you don't see the Solution Explorer tool window, you can open it from the Visual Studio menu bar by using View > Solution Explorer, or by pressing Ctrl+Alt+L.
In the File Explorer Options window, click on the "View" tab. Step 3. Check the option "Show hidden files, folders or drives". Also, uncheck "Hide protected operating system files" and "Hide extensions for known file types".
In Visual Studio, click File > Open > Folder. Navigate to the folder, and click Select Folder. This opens the folder in Solution Explorer and displays its contents, files and any subfolders.
Solution folders in VS are only visible within VS and are not file system folders.
If you want a file system folder to be mirrored in VS then you will need to create the folder on the file system and then use the 'Add/Existing Item' option to add the folder.
You can then add a file to this folder and it will appear where you would expect it to.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With