简体   繁体   English

在解决方案资源管理器下的 Visual Studio 解决方案中创建的文件夹未出现在源代码管理资源管理器中

[英]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

在此处输入图片说明

Look here for detailed description在这里查看详细说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 配置文件未出现在 Visual Studio 的解决方案资源管理器中 - Config file not appearing in solution explorer in visual studio 无法访问Visual Studio 2010解决方案资源管理器中的文件夹 - Cannot access folders in Visual Studio 2010 Solution Explorer Visual Studio 解决方案资源管理器未在解决方案中显示项目 - Visual Studio Solution Explorer not showing projects in solution VS中的Project Solution在Solution Explorer中丢失的文件夹 - Missing Folders in Solution Explorer Created by Project Solution in VS Visual Studio .Net解决方案资源管理器图标 - Visual Studio .Net Solution Explorer icons 在 Visual Studio 解决方案资源管理器中禁用区分大小写 - disable case sensitive in visual studio solution explorer 在 Visual Studio 中更改解决方案资源管理器的标题? - Change the title of Solution Explorer in Visual Studio? 解决方案资源管理器中的 Visual Studio 2017 锁定文件 - Visual Studio 2017 lock file in solution explorer Visual Studio 2013扩展解决方案资源管理器筛选器 - Visual Studio 2013 Extending Solution Explorer Filter Visual Studio 2010问题-解决方案和源代码管理资源管理器不匹配-将项目添加到子文件夹仍然映射到根目录 - Visual Studio 2010 Issue - Solution & Source Control explorer mismatch - Adding projects to sub-folder still maps to root
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM