Team Foundation Server-如何有效地设置具有依赖关系的源代码布局
我目前正在尝试使用 TFS 设置新的 Visual Studio 2008 解决方案。
当前结构如下
ProjectName
- src
* SomeSolution.sln
* ProjectFolder1
* ProjectFolder2
- Third Party Tools
在 subversion 中我只会进入根目录并执行 svn update。或者使用 Git,也可以从根目录 git pull origin 。
在 Visual Studio 中,我右键单击解决方案并按“获取最新版本”,我只获得解决方案中的最新 src。有没有一种方法可以让我通过 Visual Studio 干净地获取最新的库?或者我是否必须在每台开发人员计算机上安装 powertools,以便他们可以从 Windows 资源管理器进行更新?
I am currently trying to set up a new visual studio 2008 solution while using TFS.
Current structure is as follows
ProjectName
- src
* SomeSolution.sln
* ProjectFolder1
* ProjectFolder2
- Third Party Tools
In subversion I would just go to the root directory and do svn update. Or with Git, git pull origin from the root directory as well.
When in Visual Studio and I right click the solution and press "get latest version" I only get the latest src located in the solution. Is there a way withing Visual Studio where I could cleanly get the latest libraries as well? Or am I going to have to install the powertools on every developers machines so that they can update from windows explorer?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
使用“源代码管理”窗口,右键单击“项目名称”并选择“获取最新版本”
,或者在解决方案文件夹下添加第三方文件。这样您就可以继续使用已设置的文件/目录结构,并且能够通过获取解决方案文件本身的最新信息
Using the Source Control window, right click on the ProjectName and select Get Latest Version
Or, add the Third Party files under a solution folder. That way you can continue using the file/directory structure you have set up, as well as be able to get latest just from getting latest on the solution file itself
正如 qntmfred 所说,从源代码管理窗口运行获取最新版本。这是确保您获得源代码树中所需的所有内容的唯一方法。
我们的主解决方案中通常有一个 Assemblies 文件夹,该应用程序中使用的所有第三方二进制文件都分支到其中。当第三方库更新时,我们将分支与需要它们的相关解决方案同步。所有项目都引用其本地分支副本中的程序集。例如:
As qntmfred said, Run Get Latest from the Source Control window. This is the only way to ensure that you get everything in the source tree you want.
We typically have an Assemblies folder in our main solution that all third party binaries used in that application are branched into. When the third part library is updated, we sync the branches with the relevant solutions that need them. All projects reference the assemblies from their locally branched copies. For example:
您必须在访问 TFS 服务器的所有计算机上安装 TeamExplorer。只要知道这个方法就可以了。 “GetLastVersion”已经覆盖了机器的文件。
You must install the TeamExplorer on all machines that access the TFS server. Just know this way. The "GetLastVersion" already overwrites files of the machine.