views:

47

answers:

3

Hi,

I have a Visual Studio (2008) project where I have some files added as links (through Add Existing Item->Add As Link). Suppose I want to copy this project somewhere else (give it to another developer, release source code, etc.) and I would like to "convert" all these links to actual copies of these files. Is this possible? How can I do this in VS or is there some 3rd party utility to do that?

Thanks.

A: 

I would guess that the easiest approach is simply to remove the items from your project and then add them again, but not as links? If you want to keep the files as links in your project, make the copy first and then remove/add the items in the copy.

Fredrik Mörk
Well, I know that I can do that :) The reason I'm asking is that this doesn't sound like an appealing approach to me.
Alan Mendelevich
I understand; might, if nothing else, be a bit tedious if it is a large number of files...
Fredrik Mörk
A: 

if all your files are under a single root (and not c:\...) and relative you can try use TreeTrim.

treetrim.console c:\ -workingcopy -zip:writeTo:c:\out.zip

this will create a zip will all the need info without the temporary files (.pdb, .ncb)

Shay Erlichmen
I'm sorry but I don't follow how this would help in my situation?
Alan Mendelevich
you don't need to convert the links if they are relative. just send the entire root folder. you can use trim tree to clean the files you don't need. If your files are not relative then they should, there should be at least one common root for all the files
Shay Erlichmen