i have this issue today, i run dotnet workload update, then i remove the publish profile. After that make a new publish and it works fine