C# add a reference using only code (no IDE “Add Reference” functions)

前端 未结 4 1395
攒了一身酷
攒了一身酷 2021-01-13 07:57

I am writting a plugin for a program, and I want to put my code inside a DLL so I can share the plugin freely without exposing (giving away) my code.

Here is the bas

4条回答
  •  终归单人心
    2021-01-13 08:29

    Use the static Assembly.Load() / Assembly.LoadFile() / Assembly.LoadFrom() methods to dynamically load assemblies.

提交回复
热议问题