Runs dotnet build on the specified project.
Path to project file (like .csproj) or directory of project to build
A SpawnError if the spawned process exits with a non-zero exit code
Runs dotnet build on the specified project.