Teamcity 工件路径如何工作?
如果我想创建两个工件 dist 和 source,其中我使用 sln 2008 构建运行程序并使用默认 bin/Release 构建我的项目,任何人都可以给我一个为构建配置定义的工件路径设置的示例吗?
**/Source/Code/MyProject/bin/Release/*.* => dist **/*.* => source
我得到两个工件根 dist 和 source 但在 dist 下我得到了我不想要的整个目录结构(Source/Code/MyProject/bin/Release),在 source 下我得到了整个目录结构以及 obj 和 bin/Release ,其中我不想。
您能否就如何正确执行此操作提供一些建议?
我是否需要更改我正在构建的所有项目的目标位置才能使其正常工作?
Can anyone give me an example of what the Artifact paths setting defined for a build configuration could look like if I want to create two artifacts dist and source where I am using the sln 2008 build runner and building my projects using the default bin/Release?
**/Source/Code/MyProject/bin/Release/*.* => dist **/*.* => source
I get two artifact roots dist and source but under dist I get the whole directory structure (Source/Code/MyProject/bin/Release) which I don't want and under source I get the whole thing along with obj and bin/Release which I do not want.
Can you give some advice on how to do this correctly?
Do I need to change the target location for all the projects I am building to be able to get this thing to work?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
因此,您只需要:
这会将发布中的所有文件放入名为 dist 的工件文件夹中,并将 Source 中的所有文件放入名为 source 的工件文件夹中。
如果您在 Release 中有子文件夹,请尝试:
So you'll just need:
This will put all the files in release into a artifact folder called dist and everything in Source into a artifact folder called source.
If you have subfolders in Release try:
根据 TeamCity 文档; 应该是这样的:
所以..
According to TeamCity documentation; it should be like this:
So..