private void BuildPinnedAssembly(RegisteredProject project, string assemblyName) { Log.LogMessage("Building project for pinned assembly '" + assemblyName + "'..."); this.ExecTask(() => new MSBuild { Projects = project.ProjectPath.ToTaskItems(), BuildInParallel = false //Ensure that this is built synchronously before we copy the output assembly }); }