Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add references manually

Is there anyway I can make the process of adding references to C# projects less painful?

Every time I create a new C# class library project. I have to use the Add Reference dialog for 5 times at least.

like image 320
A B Avatar asked Dec 21 '08 03:12

A B


People also ask

How do you add References manually?

Create a New Reference ​Under the References menu... "New Reference" or type (CTRL N) or click on the icon to bring up a new blank reference. Select the appropriate Reference type (eg Book, Journal, etc) then type in the details. To close the Reference (CTRL W).

How do you add a reference?

On the Reference tab, click Insert Citation and then do one of the following: To add the source information, click Add New Source, and then, in the Create Source dialog box, click the arrow next to Type of Source, and select the type of source you want to use (for example, a book section or a website).


2 Answers

Install the PowerCommands for Visual Studio. You can then simply copy and paste a bunch of references between projects (plus lots of other useful commands). Some of the other useful commands are:

  • Collapse Projects (my favourite)
  • Copy References and Paste References
  • Remove and Sort Usings
  • Open Containing Folder
  • Open Command Prompt
like image 69
Mitch Wheat Avatar answered Sep 29 '22 20:09

Mitch Wheat


You can select more than one reference at a time to add using CTRL-Click. You can also use the Recent tab to find references that you've added recently to other projects easily.

like image 27
tvanfosson Avatar answered Sep 29 '22 18:09

tvanfosson