Skip to content

Publish a single file app does not create a single file #44337

Closed
@JoeMarkov

Description

@JoeMarkov

Version Used:
C:\Temp\HelloConsole>dotnet --version
5.0.100-rc.2.20479.15

Steps to Reproduce:

  1. Creating a new dotnet console application
  2. Publish it as a single file using

dotnet publish -r win-x64 -p:PublishSingleFile=true --self-contained true
or
dotnet publish -r win10-x64 /p:PublishSingleFile=true

  1. then I get these files created:

11/04/2020 02:54 PM

.
11/04/2020 02:54 PM ..
09/25/2020 10:47 PM 747,912 clrcompression.dll
09/25/2020 10:46 PM 1,324,416 clrjit.dll
09/25/2020 10:47 PM 5,154,696 coreclr.dll
11/04/2020 02:54 PM 53,289,026 HelloConsole.exe
11/04/2020 02:50 PM 9,352 HelloConsole.pdb
09/25/2020 10:46 PM 1,042,792 mscordaccore.dll

Expected Behavior:

I would expect to only get one file.

Actual Behavior:

I get many files. So bit confused here.... Why I don't get a single file?. I get the same result when I publish from inside visual Studio as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions