Adding a dll file to a C# project

后端 未结 7 786
-上瘾入骨i
-上瘾入骨i 2021-01-13 06:05

It\'s a beginners question, but...

Image of dll reference and dll included in project file http://a3.vox.com/6a00c2251e5b66549d00e398ca81eb0003-pi

If you loo

相关标签:
7条回答
  • 2021-01-13 07:03

    This actually might be a good idea in a lot of circumstances. In my opinion their are 3 types of dependencies

    1. Assemblies from the .Net standard library. Never include those locally.
    2. Assemblies that you expect other developers to install as part of an MSI or exe setup package. This usually means their strongly signed and have a copy in the GAC.
    3. Assemblies that you don't expect other developers to install via an MSI or exe installer. Maybe because you have a third party or in house library not in the GAC.

    In the third case, the simplest thing to do is store a copy of the DLL in the source repo.

    0 讨论(0)
提交回复
热议问题