I'm surprised you didn't mention MSBuild. dotnet runs MSBuild, and MSBuild is task-oriented (or target-oriented? or target-task-oriented?).
I take editing via MSBuild would cover the same things, but Cake allows doing so without having to use/learn MSBuild?