// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. namespace WixToolset.BuildTasks { using System; using System.Collections.Generic; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; /// /// This task assigns Culture metadata to files based on the value of the Culture attribute on the /// WixLocalization element inside the file. /// public class CreateItemAvoidingInference : Task { /// /// The properties to converty to items. /// [Required] public string InputProperties { get; set; } /// /// The output items. /// [Output] public ITaskItem[] OuputItems { get; private set; } /// /// Gets a complete list of external cabs referenced by the given installer database file. /// /// True upon completion of the task execution. public override bool Execute() { var newItems = new List(); foreach (var property in this.InputProperties.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries)) { newItems.Add(new TaskItem(property)); } this.OuputItems = newItems.ToArray(); return true; } } }