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?

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top