Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in DevOps and Agile by (29.3k points)

I have a Visual Studio Solution. Currently, it is an empty solution (=no projects) and I have added a few solution folders.

Solution Folders only seem to be "virtual folders", because they are not really created in the Filesystem and files inside solution folders are just sitting in the same folder as the .sln file.

Is there a setting that I've overlooked that tells Visual Studio to treat Solution Folders as "real" folders, that is to create them in the file system and move files into it when I move them inside the solution into one of those folders?

1 Answer

0 votes
by (50.2k points)

There is no special setting that would help you to resolve this issue but there is a workaround, that behaves as expected. For this follow the steps

Add a New or Existing Web Site to the Solution.

Just make sure it's created inside your solution folder.

even create a "link" to an external folder, e.g. 'Docs' on a network share. In that case, it's ignored by Git of course.

Make sure to go to the "Project" settings or Configuration Manager to exclude this "Web Site" from Build and Deploy.

Done. Now Solution Explorer will reflect any change in the file system and vice versa.

This is not the official feature though but it helps you to have the solution folders as real folders.

Browse Categories

...