Embedding DLL's into .exe in in Visual C# 2010

前端 未结 8 2311
臣服心动
臣服心动 2020-12-14 10:31

I\'m working on a C# program that uses iTextSharp.dll and WebCam_Capture.dll. When I build the program, it creates executable in the debug folder and it also copies these tw

8条回答
  •  无人及你
    2020-12-14 11:20

    Check out the AssemblyResolve event on the app domain.

    I don't have a sample but you basically check what is asked for and stream back the resource DLL. I believe LinqPAD does this well - you could have a look at Joseph Albahari's implementation with a decompiler etc.

提交回复
热议问题