Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Folders created in visual studio solution under solution explorer not appearing in source control explorer

I converted my MVC solution to layered architecture . For this I added folders in my solution in Solution Explorer. Everything is working good, my colleagues are able to take the latest of solution and the folders are appearing in solution explorer.

The issue is I am not able to see the folder structure in TFS(in Source Control Explorer.)

Probably I should have create the folder structure in TFS directly.But now I have lot of changes checked in since I created the folder, so I think this option will not work.

Please Advice.

like image 428
winterishere Avatar asked Jan 29 '23 23:01

winterishere


1 Answers

It's supposed to be it. The root cause is Visual Studio solutions Folder are not real 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.

You can create real folders in a "project" within the solution, but not in the solution itself. Details about this area, you could refer below questions:

  • Visual Studio Solutions Folder as real Folders
  • What is a solution folder in visual studio

Source Control Explorer is used to manage files in TFVC, the files in the solution folder will shown up in the source control explorer and be the same level with .sln file, however the solution folders itself will not appearing in source control explorer and keep the folder structure.

like image 180
PatrickLu-MSFT Avatar answered Jan 31 '23 11:01

PatrickLu-MSFT