© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
1 reply
Torn

❔ How does the application created by PublishSingleFile work?

To be specific,
<PublishSingleFile>true</PublishSingleFile>
<SelfContained>false</SelfContained>
<PublishSingleFile>true</PublishSingleFile>
<SelfContained>false</SelfContained>

I know the executable contains the apphost, my code as a dll file, and the configuration json files. Will it contain files manually added to the project, like text files, other dll files? What about files from nuget packages?

As a separate question, how are these files later retrieved from the single executable? Extracted to some folder? Unpacked into memory?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Console Application published as PublishSingleFile the window auto close for few devloper.
C#CC# / help
3y ago
❔ How does the main method work?
C#CC# / help
3y ago
Open existing application in application created in c#
C#CC# / help
3y ago
How does marshalling work?
C#CC# / help
5mo ago