示例#1
0
        public bool Build(XamarinProject project, bool doNotCleanupOnUpdate = false, string [] parameters = null, bool saveProject = true, Dictionary <string, string> environmentVariables = null)
        {
            Save(project, doNotCleanupOnUpdate, saveProject);

            Output = project.CreateBuildOutput(this);

            project.NuGetRestore(ProjectDirectory, PackagesDirectory);

            bool result = BuildInternal(Path.Combine(ProjectDirectory, project.ProjectFilePath), Target, parameters, environmentVariables);

            built_before = true;

            if (CleanupAfterSuccessfulBuild)
            {
                Cleanup();
            }
            last_build_result = result;
            return(result);
        }
示例#2
0
 public bool IsTargetSkipped(string target) => BuildOutput.IsTargetSkipped(LastBuildOutput, target);