-
hello i create default asp.mvc(core) .net 6 project in visual studio 2022 with checkbox "docker -linux". After docker build -> run image all work fine! But i find in image magic file which take 129kb with name equal project name. I havent this file in my project! I havent this file then i try without docker execute command: dotnet restore -> dotnet publish! I try remove this file from container by hand and after restart all work fine without this file. What is magic file ? How i can make docker images without this file? Intresting this unnecessary file take 1/2 ALL MY aplication folder space!!! this file havent extension , this file is binaru (i think). list files: cat head: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This is the platform-specific executable that gets output by default. You could use either
You can prevent the output of this executable by set the |
Beta Was this translation helpful? Give feedback.
This is the platform-specific executable that gets output by default. You could use either
web1
ordotnet web1.dll
to execute your application. This behavior is documented:You can prevent the output of this executable by set the
UseAppHost
property (include/p:UseAppHost=false
when callingdotnet 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…