Dependencies and references - What exactly should I reference?

前端 未结 3 577
长情又很酷
长情又很酷 2021-01-13 03:02

I am wondering what to include when building my project. I have a library I need to reference for my project to build but that library has 10 dependencies itself. Should I r

3条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-13 03:47

    I suppose you are working in Visual Studio.

    The short answer is to include only the assemblies needed for your project to compile.

    Referencing more assemblies should not cause any problems, for your application will load assemblies when needed at run time, but having a long list of references can get confusing and messy.

    Your list of references should tell about what your program does and what functions it uses.

提交回复
热议问题