Adding a dll file to a C# project

后端 未结 7 792
-上瘾入骨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:01

    It's really hard to guess why someone else did something, but if I really had to guess, I'ld say that the guy thought to embed the necessary dlls as resources to be sure it was availale to the application. I have seen this technique used to embed fonts or sounds and am not sure if it works at all with dlls; but it's just a guess.
    Of course the best way to be sure the files were available would have been to create a deployment project, with Visual Studio or some other installation tool loke Wise or InnoSetup, just to name a few.

提交回复
热议问题