Why bother with dotnet build before dotnet publish?
You are right that dotnet publish automatically does everything dotnet build already does. In most cases – as in your scenario mentioned in the question – that means an additional dotnet build is not necessary. Do note that you can dotnet build a solution, but should only dotnet publish individual project files. Publishing solutions likely … Read more