How to copy DLL files for assembly using command assembly

I have a bunch of external dlls that I use in several projects. These dlls reference these projects and everything compiles fine.

Now I'm trying to build a Team Foundation Server build for my projects. When I run the assembly, she complains that she cannot find the files I need. How to get TFS to find the necessary files?

I thought I could use the windows copydirectory workflow function in a custom build template, but I'm not sure if this is the right way to do something. Also, if I use copydirectory, how do I refer to directories that are in TFS, not the file system? And where to copy files to?

+4
source share
1 answer

Try the following: (if using 2010) On the Workspaces tab, you can map the folder have all the necessary DLL files, just make sure that you reference the assemblies in your project accordingly.

For example, if your project refers to assemblies at one UP level, you can set a workspace in front of the project root folder, as shown below:

$ \ Team Project \ src → $ (BuildDirectory) \ src

$ \ Team Project \ dlls → $ (BuildDirectory)

Something like this should solve your problem.

There is also a way to do this in VS2010 build: you must add the copy command to the pre-build phase for the project (select project → Properties → Assembly events).

If you want to use the Windows workflow method - template, refer to this guide: http://blogs.msdn.com/b/buckh/archive/2010/01/21/deep-dive-on-windows-workflow-4- 0-activities.aspx

+2
source

Source: https://habr.com/ru/post/1440629/


All Articles