Skip to content

docker .net 6 image magic file #3389

Answered by mthalman
devopg asked this question in Q&A
Discussion options

You must be logged in to vote

This is the platform-specific executable that gets output by default. You could use either web1 or dotnet web1.dll to execute your application. This behavior is documented:

Publishing an app as framework-dependent produces a cross-platform binary as a dll file, and a platform-specific executable that targets your current platform.

You can prevent the output of this executable by set the UseAppHost property (include /p:UseAppHost=false when calling dotnet publish). I would argue that this should be set by default for these Dockerfiles since there is no intention to use the executable and the entrypoint is specifically set to use the DLL. So I've logged microsoft/DockerTools#321 as a sugg…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by devopg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants