VSTS Build不生成最新的Bin Binaries [英] VSTS Build not generating latest bin binaries

查看:87
本文介绍了VSTS Build不生成最新的Bin Binaries的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将TFS 2018 CI管道用于MVC项目,我也将项目的bin文件添加到了TFS中,管道没有问题,它成功了并且成功生成了工件,但是主要问题是如果我做了与项目的DLL相关的代码中的任何更改,

I am using TFS 2018 CI pipeline for MVC project, also I added the project's bin files into the TFS, there is no problem with the pipeline, its getting succeeded and artifact is generated successfully but the main problem is that if I made any changes in code related to project's DLL,

the CI pipeline's build solution not generating its own latest bin file

直到或除非我手动签出project.dll文件,然后再签入文件,否则管道将选择所做的更改(我所缺少的内容),并通过使用"MSBUILD"任务得到相同的结果,同时我也勾选了所有目录" '但结果相同

Until or unless I manually check Out the project.dll file and than check In the file than pipeline will pick the changes, what I am missing, same result by using 'MSBUILD' tasks, I also TICK clean the 'all directories' but same result

推荐答案

花了整整一天的时间,我才想到解决方案,不应将bin文件夹添加/包括在源代码管理(TFS/Azure)中,

After spending whole day I came to the solution that, bin folder should not be added/included into the Source Control (TFS/Azure),

 bin folder or project's binaries should not be added in to TFS

在执行此操作后,应在项目中排除bin文件夹,当我运行相同的构建管道并检查工件时,发现TFS builds相应地添加了bin文件夹和文件,这令我震惊.

bin folder should be excluded in the project, after doing this operation, when I run the same build pipeline and inspect the artifact found that TFS builds added the bin folder and files accordingly, thats shocked me.

在这种情况下,应该记住一件事,即外部dll引用如何,在src文件夹的同一级别上创建一个CommonDLLs文件夹,然后将所有外部DLL放在该文件夹中.通过相对路径引用它们

One thing should be remember in this case that what about external dlls reference, create a CommonDLLs folder at the same level of the src folder and put all external DLLs there. They are referenced through a relative path

这篇关于VSTS Build不生成最新的Bin Binaries的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆