如何正确地将DLLs/assemblies签入TFS/Visual Studio Team Services(原VSO)?[英] How to properly check in DLLs/assemblies to TFS/Visual Studio Team Services (was VSO)

本文是小编为大家收集整理的关于如何正确地将DLLs/assemblies签入TFS/Visual Studio Team Services(原VSO)?的处理/解决方法,可以参考本文帮助大家快速定位并解决问题,中文翻译不准确的可切换到English标签页查看源文。

问题描述

我们有一个由Nuget提供的项目引用的几个DLL.每当从TFS/VST中提取解决方案后,每次都必须复制DLL文件,这对于不熟悉我们的项目的PPL非常乏味而令人困惑.

有没有办法将DLL在TFS/VST中正确检查?显然,我们可以在解决方案中包含bin文件夹,但这是正确的事情吗?

推荐答案

在某些情况下,有一个名为" libs"或" libraries"的文件夹,其中包含您项目需要编译和运行的所有组件.因此,您可以检查此文件夹.在每个项目中,您需要引用此处包含的DLL(Visual Studio使用相对路径自动保存路径). 包括" bin"文件夹不是正确的方法,因为如果开发人员在Visual Studio中执行"干净解决方案",则它会清洁此文件夹.

其他推荐答案

将DLL的两个步骤纳入Visual Studio团队服务

我不确定如何在TFS中进行操作,但是使用Visual Studio Team Services(Visual Studio Online)进行以下操作...

步骤1

在VST中,导航到项目应位于项目的代码区域中的位置.

导航到项目的代码区域

步骤2:

只需单击上传文件按钮,然后选择要添加到存储库的.dll或其他文件类型.

上传按钮

现在,当您获得或刷新项目时,您的.dll文件也将包括在内.


能够直接从Visual Studio中完成此操作会很高兴,不幸的是,我不知道该怎么做.

其他推荐答案

我还遇到了从包装文件夹到TFS的登机DLL的问题.包装文件夹中的所有内容除了DLL以外,还可以签名. 如果某人仍然遇到这个问题,则应阅读本文在这里

基本上,您已经让TFS知道您可以在TFS中进行签入可执行文件,DLLS文件. 执行此操作的步骤:

  1. 在Visual Studio中,请参与团队 - >团队项目收集设置 - >源控制
  2. '文件类型'选项卡 - >确保可执行文件 请参阅screenshot
  3. 转到源控制Explorer
  4. 转到要添加dll的文件夹(在我的情况下,包装夹)
  5. 右键单击文件夹 - >将项目添加到文件夹 - >在"下一个"按钮的帮助下找到DLL的文件夹 - > select/(突出显示)dlls->单击'inclage'inclage' )' - >单击"完成"
  6. 如果有任何
  7. ,请重复其他DLL的步骤5
  8. 最后但并非最不重要的一点是,上面的上述dll从您的代码到tfs

本文地址:https://www.itbaoku.cn/post/1875727.html

问题描述

We have several DLLs referenced by a project that are not available through NuGet. Every time one has to copy the DLL file across after pulling the solution from TFS/VSTS, which is quite tedious and confusing for ppl not familiar with our projects.

Is there a way to properly check the DLLs in to TFS/VSTS? Obviously we can include the BIN folder in the solution but is that the right thing to do?

推荐答案

In some scenarios it's useful to have a folder named "libs", or "libraries", for example, that contains all the assemblies required by your projects to compile and run. So you can check-in this folder. In each project you need to reference the dll contained here (Visual Studio automatically save the path using relative path). Include the "bin" folder is not the right way, because if a developer performs a "Clean solution" in Visual Studio, it clean this folder.

其他推荐答案

Getting DLL's Into Visual Studio Team Services in Two Steps

I'm not sure how to do it in TFS, but with Visual Studio Team Services (Visual Studio Online) do the following...

Step 1

In VSTS navigate to where the files should be located in the Code area of your project.

Navigate to the Code area of your project

Step 2:

Simply click the upload files button and select the .dll or other files types you want to add to your repository.

Upload Button

Now when you get or refresh the project your .dll files will be included as well.


It would be nice to be able to do this directly from Visual Studio, unfortunately I'm am not aware of how to do this.

其他推荐答案

I was also having issues with check-in dlls from package folder into TFS. Everything from packages folder was getting checked-in except dlls. if someone still having this issue then you should read this article Here

Basically, you have let TFS know that you are okay to check-in executable,dlls files in TFS. Steps to do this:

  1. In Visual studio go to Team --> Team Project Collection settings --> Source Control
  2. 'File types' tab --> make sure Executable Files See screenshot
  3. Go to source control explorer
  4. Go to folder from where you want to add dll (in my case, packages folder)
  5. Right click the folder --> Add item to folder --> locate the folder of dll with the help of 'Next' button --> select/(highlight) the dlls --> click on 'include item(s)' --> click on 'Finish'
  6. Repeat step 5 for other dlls if any
  7. Last but not least, check-in the above included dlls from your code to TFS