Skip to content

.NET 5.0 RC2 - self-contained build on Linux - version missing in generated file #1258

@rasmk

Description

@rasmk

When I build a self-contained app on Linux (in a Docker container), targeted to win-64, the generated exe file misses version, copyright, and other information. When built on Windows, the information is built into the exe file as expected.

See screenshot: left side is macOS build, right - Windows build.
image

My build task in VS Code is

        {
            "label": "publish - windows, self-contained",
            "command": "dotnet",
            "type": "process",
            "args": [
                "publish",
                "-c",
                "release",
                "-r",
                "win-x64",
                "-p:PublishSingleFile=true",
                "-p:UseAppHost=true",
                "--self-contained",
                "true"
            ],
            "options": {
                "cwd": "${workspaceFolder}/MessageBroker",
            },
            "problemMatcher": "$msCompile"
        },

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions