Home > Mobile >  Publish wizard doesn't have Single File Executable Option
Publish wizard doesn't have Single File Executable Option

Time:04-26

i am using visual studio 2017 with .net 4.8 and when i hit publish the option for Self-Contained app or Single File option doesn't show and i tried opening the project with Visual Studio 2020 and still the option doesn't show. this is a WPF application

Publish Wizard Screenshot

Publish Wizard Screenshot

Publish Wizard Screenshot

Publish Wizard Screenshot

CodePudding user response:

According to the official documentation.

This deployment model has been available since .NET Core 3.0 and has been enhanced in .NET 5. Previously in .NET Core 3.0, when a user ran your single-file application, the .NET Core host first extracted all the files into a directory before running the application.

.NET 5 improves this experience by running the code directly without extracting files from the application.

So the answer to that question is, you can't use single file publishing under .net 4.8.

  • Related