Single File Deployment

Siddhant Singh 5 Reputation points
2024-07-12T13:48:15.5533333+00:00

We are producing single-file executables for our console app which is not working with the native dll methods at runtime. I’ve always tested it locally without the publish and it still works fine. “IncludeNativeLibrariesForSelfExtract” is set in the project file. But with single exe it is not working.

After adding IncludeAllContentForSelfExtract my single stopped working but after compiling with it something is done that made my Native libraries start working after removing it. I removed IncludeAllContentForSelfExtract, build single exe again and it started working.

Developer technologies ASP.NET ASP.NET Core
Developer technologies .NET Other
Developer technologies ASP.NET Other
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.