Could not find script build.cakethat't because there is no file named build.cake in the root folder of the project. You could use the
build.shto build. Alternatively you could specify the name of the Cake file explicitly like
dotnet cake recipe.cake- be sure to
dotnet tool restorebefore doing that, so you are calling cake in the right version. I'd suggest to stick to the prepared scripts (i.e. build.ps1/build.sh) to build the project.
Process.Start()is the much better option here. (In the end, this is what Cake does, too.)
Task(task)creates a new task
RunTarget(task)executes a task.
MSBUILD : error MSB1009: Project file does not exist. Switch: build/Build.csproj