c# - Add a .dll source to use classes -


im coding in c#. written portable console application needs dll work , works perfect without error.

i want rid of carrying dll everywhere , copy source or of classes. im using netshrink software making exe , dll package kind of trick , not original way.

myquestion: is there original way in visual studio or plugins bring dll source project ? heard old programmer there built-in tool bring whole .dll source project.

what tried: except netshrink tried assembly-explorer in resharper plugin , output .sln project .dll thing hard this.

the dll ionic.zip.dll in dotnetzip used compressing files.

actually there no way around it. have several options deal portable project.

  1. add library project solution , reference it.
  2. add library (.dll) solution , reference it.
  3. add library (.dll) solution , load resources
  4. merge (.dll) .exe 3rd party tools (e.g., netshrink)
  5. upload library (.dll) nuget server , install (you setup own nuget server or use microsoft one)

i use approach number 3. copy .dll solution somewhere, reference it, load on demand , not copy output folder. if possible, stick approach number 5. since convenient one.


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -