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.
- add library project solution , reference it.
- add library (.dll) solution , reference it.
- add library (.dll) solution , load resources
- merge (.dll) .exe 3rd party tools (e.g., netshrink)
- 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
Post a Comment