VSTS Build not generating latest bin binaries

孤街浪徒 提交于 2021-02-15 07:50:18

问题


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

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


回答1:


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 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.

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



来源:https://stackoverflow.com/questions/63059180/vsts-build-not-generating-latest-bin-binaries

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!