Problems loading in large number of dlls as references in Visual Studio

tisva 1 Reputation point
2022-06-23T22:19:19.86+00:00

Hello, I am trying to bring into my project 256 dll files using the Reference manager. When I click browse and select all, Visual studio does not display any errors and it also does not load the assemblies in.

However, when trying to import in smaller chunks, its fine. Is there a simple way to bring in large number of assemblies into a project? Is there a limit to how many binaries can be added in at one time?

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,630 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 25,806 Reputation points Microsoft Vendor
    2022-06-24T08:42:44.587+00:00

    Hi @tisva ,

    Welcome to Microsoft Q&A!

    Which version of Visual Studio are you using?

    There is no relevant documentation that clearly states the limit on the number of references. You can update your Visual Studio to the latest version and try again.

    Besides, for your requirements, maybe you can try to use the ILRepack and merge the multiple assemblies into a single assembly.

    Sincerely,
    Anna
    *
    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.