1

背景:我在 Visual Studio 2013 中有一个解决方案,其中包含与 Team Foundation Server 同步的多个项目。只有我自己和另一位程序员经常使用这个解决方案。其中两个项目有相应的设置项目,只有我使用。我们在保持设置项目在我们的计算机之间同步时遇到了问题,因为有时它会在他的上更新,这会因为文件引用而破坏我的,或者可能是因为我使用了他没有的混淆工具。出于这个原因,他在他的源代码控制中隐藏了设置项目,以便我可以将它们与 TFS 同步,但他不必看到它们并消除上述问题。

问题。现在,当我获得解决方案的最新更改时,设置项目从我的解决方案资源管理器中消失,我必须阅读它们。我可以去源代码管理并查看这些设置项目,但我不知道如何解决这个问题,以便在我获得最新的解决方案版本时它不会删除我的设置项目。有任何想法吗?

4

1 回答 1

0

You can't have both of you opening the same solution with different projects.

When he opens the solution he will see two dead projects (the cloaked setup ones) and he is removing them from the solution. Then when you get the solution they are missing.

All developers working on a solution must get all the bits. A work around for this I to create a new solution file in the same folder as the other one. This solution only has the non-setup projects. You open the main solution and he opens the cut down version.

于 2015-04-09T08:17:48.617 回答