[英]Folders created in visual studio solution under solution explorer not appearing in source control explorer
I converted my MVC solution to layered architecture .我将我的 MVC 解决方案转换为分层架构。 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.)
问题是我看不到 TFS 中的文件夹结构(在源代码管理资源管理器中。)
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.可能我应该直接在 TFS 中创建文件夹结构。但是现在自从我创建文件夹以来我检查了很多更改,所以我认为这个选项不起作用。
Please Advice.请指教。
It's supposed to be it.应该就是了The root cause is Visual Studio solutions Folder are not real Folders.
根本原因是 Visual Studio 解决方案文件夹不是真正的文件夹。
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.
解决方案文件夹似乎只是“虚拟文件夹”,因为它们并不是真正在文件系统中创建的,解决方案文件夹中的文件只是与 .sln 文件位于同一文件夹中。
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:
有关该区域的详细信息,您可以参考以下问题:
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.源代码管理资源管理器用于管理 TFVC 中的文件,解决方案文件夹中的文件将显示在源代码管理资源管理器中并与
.sln
文件处于同一级别,但解决方案文件夹本身不会出现在源代码管理资源管理器中并保留文件夹结构。
At least for C# solutions in Visual Studio 2019 you can manage individual forders in the solution.至少对于 Visual Studio 2019 中的 C# 解决方案,您可以管理解决方案中的各个 forder。
To do this the view has to be switched to Folder View
using the Switch View
button in Solution Explorer.为此,必须使用解决方案资源管理器中的“
Switch View
按钮将视图切换到Folder View
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.