Skip to content
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

Publishing single file application with custom icon via dotnet cli on Docker #10670

Closed
jacekard opened this issue Feb 18, 2020 · 2 comments
Closed

Comments

@jacekard
Copy link

jacekard commented Feb 18, 2020

Hello,
I'm glad that in the newest .NET Core version there's a possibility to change an application icon, however it looks like it's limited to publishing in local environment. Is Docker not supported?

What I'm trying to achieve:
Publishing self-contained, single file executable using 'dotnet publish' command and with the icon file I'm specifying in project's csproj using Docker container.
It works using Visual Studio 'Publish' button on local Windows. It doesn't work while using dotnet cli using docker container.

My configuration using Microsoft (R) Build Engine version 16.4.0+e901037fe for .NET Core:

This is .Net Core 3.1 Console Application with defined icon as below:

<PropertyGroup>
    ....
   <ApplicationIcon>icon.ico</ApplicationIcon>
</PropertyGroup>

Publish command is executed using command:
dotnet publish -c Release -o out

On the left side there is executable published on host machine. On the right, docker container.
Not only it lacks icon but also some of the assembly info. Could anyone explain to me why there's such a difference?
image

@jacekard jacekard changed the title Publishing single file application with custom icon via dotnet cli Publishing single file application with custom icon via dotnet cli on Docker Feb 18, 2020
@swaroop-sridhar
Copy link
Contributor

@nguerrera @wli
This work is subsumed by dotnet/runtime#3828
So, I think we can close this as a dup.

@nguerrera
Copy link
Contributor

Duplicate of dotnet/runtime#3828

@nguerrera nguerrera marked this as a duplicate of dotnet/runtime#3828 Feb 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants