C#C
C#3y ago
Torn

❔ How does the application created by PublishSingleFile work?

To be specific,
<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?
Was this page helpful?