Tuesday, May 26, 2015

How to Remove unused references from C sharp projects in Visual Studio

In this tutorial we describe Step by step How to Remove unused references from C sharp projects in Visual Studio .
We'll use a free tool which can be downloaded from the Visual Studio Gallery Extensions Tools:
The snapshot below is an example of removing unused references from a MVC C# application :
  How to Remove unused references from C sharp projects in Visual Studio



How to Remove unused references from C sharp projects in Visual Studio


As said before, go to the  Visual Studio Gallery and download the tool:
  Remove unused references from C sharp projects in Visual Studio

After downloaded, install it:

  unused references from C sharp projects in Visual Studio


Finished the installation, open the install Log :

  How to Remove  references from C sharp projects in Visual Studio

As you can see, the tool will search all Visual Studio products in your machine, and will install itself only in the VS 10.00 versions:

  How to Remove unused references  C sharp   Visual Studio
 Take a look at the projects menu:

  How to Remove unused references from   Visual Studio

After the setup, you will see another menu inviting to remove references.
Finished the setup, you can see that the tool has been added to Visual Studio:

  How to Remove unused references


Now you have a new option at the menu:

  How to Remove unused references from C sharp projects

To test the tool, create a vanilla MVC C# project, and take a look at the assemblies:

  How to Remove unused references from C sharp projects in Visual Studio  1

Run the tool from the menu, to see the references removed:

  How to Remove unused references from C sharp projects in Visual Studio  2

Now there remained only the required assemblies to run the application:

  How to Remove unused references from C sharp projects in Visual Studio  3



That's all. We hope that this tool will be useful to you.

Happy programming.....

      by Carmel Schvartzman


כתב: כרמל שוורצמן




No comments:

Post a Comment