Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I copy some References of a project and paste it to another project's references in Visual Studio?

I have seen this feature when I was watching Summer Of NHibernate tutorial videos; is it possible to copy some of of the references of a project in the solution and paste them into another project's references folder in Visual Studio?

Thanks

like image 213
pencilCake Avatar asked Dec 07 '10 14:12

pencilCake


People also ask

How do I reference another project in Visual Studio code?

In visual studio, in the solution explorer, expand the project that will reference this other library. You will see "References", right click and choose "Add".

How do you reference a project in Visual Studio?

Select the project in the Solution Explorer. Select Project»Add Reference to launch the Add Reference dialog box. (Visual Studio 2010 and earlier) Click the . NET tab and select TestStand <Version> Utilities from the list of components.

What does Copy local mean in Visual Studio?

The Copy Local property (corresponding to CopyLocal) determines whether a reference is copied to the local bin path. At run time, a reference must be located in either the Global Assembly Cache (GAC) or the output path of the project.


2 Answers

You can use PowerCommands for doing it.

Copy References / Past References

(see also Sara Ford's Blog)

like image 66
CD.. Avatar answered Nov 03 '22 14:11

CD..


project files are just xml files. you can open them in a text editor and carefully copy the references.

like image 35
Vitalik Avatar answered Nov 03 '22 14:11

Vitalik