Exemple #1
0
        public DotnetPublishTask Publish(string projectName = null, string workingFolder = null, string configuration = null)
        {
            DotnetPublishTask task = Context.CreateTask <DotnetPublishTask>();

            if (!string.IsNullOrEmpty(workingFolder))
            {
                task.WorkingFolder(workingFolder);
            }

            if (!string.IsNullOrEmpty(projectName))
            {
                task.Project(projectName);
            }

            if (!string.IsNullOrEmpty(configuration))
            {
                task.Configuration(configuration);
            }

            return(task);
        }