Make sure the runtime ID in your publish profiles is not win10-x64. That doesn't work anymore (net 8+). It has to be win-x64.