Can I somehow include a 3rd party dll into my winforms standalone exe?

Sorry if there is an obvious answer to that. My lack of literature around this topic make it hard to find an answer in Google.

Example:

My WinForms application is referenced to Newtonsoft.Json.dll and it will be in my /bin/Release/ folder every time. When I want to send my tool to friends I don't really want them to see the referenced dlls in the same folder, so…

-> are there ways to include a dll inside the compiled exe?

-> are there ways to reference the dll in another way? So that maybe my friend just needs to place it into C:\ and my app will look for it there?

by d0xxx via /r/csharp

Leave a Reply