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.

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,906 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,599 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,503 questions
{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.