How to remove classes from multiple projects simultaneously?

Vishwaram P 0 Reputation points

I have a Windows Forms App(.NET Framework) which consists over 50 existing projects(all of them are Windows Forms App(.NET Framework)). All of them have common classes added as a link from local server. I need to remove all the linked classes at once. Is there a solution for this requirement other than removing from each project manually?

An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,610 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Jiale Xue - MSFT 42,411 Reputation points Microsoft Vendor

    Hi @Vishwaram P , Welcome to Microsoft Q&A,

    There is a situation where your needs can be met.

    If they are all under the same solution.

    When multiple projects use add reference to the same project.

    You can right-click the referenced project to remove it from the solution.

    The reference lists in other projects will automatically delete this project.

    After removing, the project is still in the folder and you can add or delete it again.

    Best Regards,


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments