how to include dll file in exe file to be a one exe file ?? #178
Replies: 3 comments
-
|
Hi, you may want to include the source in your project, and try something like this. https://learn.microsoft.com/en-us/dotnet/core/deploying/single-file/overview?tabs=cli Moving this to a discussion. It's not an issue with the library. |
Beta Was this translation helpful? Give feedback.
-
|
hi, first i want to apologies for that i post like a issue. i am not familiar with github so far and now i learn about discussions. best regards for that to you. i try some code examples from stackoverflow to add dll file in exe. i make it happened but i dont know how to load when the app is runing. this is some code need to write to main app form but i don know what a code i need to write. when i add dll file in exe, i notice that the size of exe is with dll inside. using resource system make it to do this, but have not way to read/write/execute it like is outside dll file trough the using directive. for console app publish menu is very different from a .net core win 10 visual app. have not this setting in it when i click on publish. here si some pictures 👍 |
Beta Was this translation helpful? Give feedback.
-
|
ok, new update :) i get the source code and add all *.cs files to a project like a existing files in to a project. i don know how is right, but now out exe file is a single and size is a with size of plus supers simple lib :) this is the link i found about this warning but i dont know how to change the code to remove warning but here have a some warning that i get from vs studio and need to know how to make it right. app is working normal like a single file, but i am warn about if i have a need to add more dll and/or cs files will make this warning an error. Severity Code Description Project File Line Suppression State |
Beta Was this translation helpful? Give feedback.





Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
hi mate. i start a one simple project with your cool super simple tcp server it is working fine for now and need to make more options that is easy.
but i try to make it to include dll file in exe file to be a one exe file to all project no succes. i try to some examples of code in my project from stackoverflow but also not success.
can you suport me alittle to make it include dll file in exe to make a one super simple exe tcp chat client super server/client ???
or how to embed library code to compile to one *.exe file in output folder ???
any help and variant will be helpfull and will achieve success. :)
Beta Was this translation helpful? Give feedback.
All reactions