TFS 中放置文件夹和构建代理工作目录之间的区别
我是第一次设置 Team Foundation 服务器,并尝试为 ASP.NET MVC 项目设置自动构建。我一切正常,但我不太明白发生了什么。
在我的构建定义中,它要求我设置放置文件夹位置。将构建任务添加到队列时,一旦成功,它不仅会在放置文件夹位置中添加一个构建文件夹,还会根据构建代理的工作目录添加一个名为 Builds 的文件夹,其中包含构建文件。
此外,放置文件夹构建包含所有调试文件,例如 Web.Debug.config 和 .pdb 文件。
这两个文件夹的用途是什么?我是否需要两者都在我的构建服务器上?如何使用构建版本进行生产?
I am setting up Team Foundation server for the first time and am attempting to set up automated builds for an ASP.NET MVC project. I have it all working but I don't really understand what is happening.
In my build definition it asks me to set a Drop Folder location. When a build task is added to the queue, once it is successful it not only adds a build folder into the drop folder location, but it also adds a folder called Builds with build files in it based on the Build Agent's working directory.
Additionally, the drop folder builds contain all the debug files such as Web.Debug.config and .pdb files.
What is the purpose of both of these folders? Do I require both to be on my build server? How do I use the builds for releases to production?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
放置文件夹保存构建的结果。如果您构建了调试配置,它仅保存调试文件。
Builds 文件夹是实际执行构建的位置。在执行构建期间,默认目录设置为此文件夹内的位置。因此,它包含中间文件等 - 无论编译器等产生什么,甚至作为另一个工具的输入。
放置文件夹允许您以多种方式引用构建结果。您可以选择部署构建结果,也可以让另一个构建引用此构建的结果。
The drop folder holds the results of the build. It only holds debug files if you built the Debug configuration.
The Builds folder is where the build actually executes. The default directory is set to a location within this folder during the execution of the build. As a result, it contains the intermediate files, among other things - whatever the compilers and such produce, even as input to another tool.
A drop folder allows you to refer to the results of a build in several ways. You may choose to deploy the build results, or you might have another build reference the results of this build.