dotnet publish -c Release -r win-x64 --self-contained -p:PublishSingleFile=true -p:PublishReadyToRun=true
if i run the command everything works fine. But the .exe is not self contained. I cant run it without the other files