-
Notifications
You must be signed in to change notification settings - Fork 1.1k
The .exe generated by dotnet publish command has no copyright information. #12553
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
What was the commandline you used? For example, if I create a console app, set the |
Sorry, seems like a duplicate of #4127 / dotnet/runtime#3828 This needs more attention. |
I'm unable to create a single file executable, because of this bug. My companies has a policy that every executable needs a ProgramVersion (and FileVersion) along with a digital Signature. |
@ckuetbach can you check again with .NET 8 RC1? In August the runtime was updated to enable generating win32 resources from non-Windows hosts in this PR, so I'm hopeful this is resolved. |
@baronfel I can confirm, that this issue is gone in .NET 8 RC2, because I just installed that version. |
I can also confirm that after updating .NET from version 6 to 8, this issue has been resolved. Now, when I build a .NET application inside a Linux container with the parameters '-os win --self-contained,' it produces the correct metadata information for the exe file. |
Same problem occured when building inside a Windows Container on a Windows Machine e.g. |
Very little chance - this work was done on the runtime and isn't security related so I'll likely not be backported. |
I created a console project and edit .csproj like this:
After publishing the project, check the generated
exe
file, the has no details.If I publish it with vs2019, it generate right details.
What should I do this with dotnet cli ??
The text was updated successfully, but these errors were encountered: