© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
39 replies
Surihia

Embedding dlls into a compiled exe [Answered]

I have few dll packages that I am using with my app and I want to embed them all inside a single compiled executable file.

I am using the following packages:
System.Buffers
System.Memory 
System.Buffers
System.Memory 

Now I have added the dll files by right clicking on my Project in the Solution explorer and by selecting the Add item option. the compiled app is larger as a result of this, but when I try running the app, it throws exceptions that the respective dll file is not present or unable to be loaded.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Embedding an exe in a program [Answered]
C#CC# / help
4y ago
❔ Trouble embedding DLL into a standalone executable
C#CC# / help
3y ago
❔ Merge dll into exe
C#CC# / help
3y ago