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,625 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,385 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,411 questions
{count} votes