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.

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"
},
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.

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" },