TFS-git 单个存储库可以有两个不同的解决方案文件吗?

TFS-git single repository can have two different solution file?

最初,我们有两个不同的 TFS-git 存储库,用于两个具有不同解决方案文件的不同项目,直到现在一切正常。 今天,我的经理来告诉我们,我们将拥有一个存储库,因为我们必须添加所有项目(意味着 2 个项目将有 2 个解决方案文件)。为此,我用我的本地文件夹克隆了那个单一的存储库,并将我的两个不同的项目放在其中。在此之后,在我的 changes/commit 选项中没有显示要提交的文件。

Two folders are present in the image, each folder contains all the project & solution file in it.

Service Project

Web Project

No file showing to commit

After adding 2 projects in the repository and commit, the only folder gets committed and no file under it.

您可以尝试以下步骤:

  1. 在 TFS 中创建一个新的空存储库。
  2. 在 VS/Team 资源管理器中连接到此 Repo,并将此 repo 克隆到您的本地文件夹。
  3. 在本地文件夹中添加两个solutions/projects,然后你应该会在VS/Team资源管理器中看到变化。