This article is a mirror article of machine translation, please click here to jump to the original article.

View: 18446|Reply: 1

[WinForm] Solve the problem of C# reference external dll scattering (inline calls)

[Copy link]
Posted on 2019-9-2 16:40:48 | | | |
Solve the problem of C# reference external dll scattering (inline calls)

We write programs that more or less reference external library files*.dll (such as common Newtonsoft.Json.dll, RestSharp.dll, log4net.dll, MySql.Data.dll)

After the program is compiled: *.exe Add N multi-dll files, will it be annoying, is there a good way to integrate into an exe?

At first, I used a third-party tool, the operation was complicated, and it was easy to make mistakes, and then I found the resource file method to load.

I studied it for a while this afternoon Inline loading. It's also a good idea

Here I will share the method with you:



The default namespace is set to the default namespace.

Here is a simple optimization



There is a better way, welcome to leave a message.







Previous:Necessary query websites: check credit information, marriage, and making friends to borrow money clearly
Next:python web programming
Posted on 2019-9-2 17:37:06 |
C# packages the dll into the exe's program
https://www.itsvse.com/thread-2841-1-1.html
(Source: Architect_Programmer)

.net/c# Use Costura.Fody to package the DLL into the EXE
https://www.itsvse.com/thread-4677-1-1.html
(Source: Architect_Programmer)
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com