Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to properly check in DLLs/assemblies to TFS/Visual Studio Team Services (was VSO)

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?

like image 417
Bryan Huang Avatar asked Jul 19 '16 01:07

Bryan Huang


3 Answers

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
like image 134
Ashu_90 Avatar answered Oct 22 '22 11:10

Ashu_90


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.

like image 36
Igor Damiani Avatar answered Oct 22 '22 10:10

Igor Damiani


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.

like image 36
Fütemire Avatar answered Oct 22 '22 12:10

Fütemire