Compartilhar via


Como: Remover referências não utilizadas (Visual Basic)

In order to reduce the size of your application, you may want to remove references to components that are not actually called by your code. This can be done using the Unused References dialog box, accessible from the References page of the Project Designer.

To remove unused references

  1. In Solution Explorer, double-click the My Project node for the project.

    In the Project Designer, click the References tab.

  2. Click the Unused references button to open the Unused References dialog box.

    The project is scanned, and the dialog box is populated with a list of references that are not being referenced in your code.

  3. No Referências não utilizadas caixa de diálogo caixa, marque as referências que você deseja remover e clique em Remover.

    The selected references will be removed from the project.

Consulte também

Tarefas

Como: Adicionar ou remover referências no Visual Studio

Outros recursos

Gerenciando referências