diff options
author | Rob Mensching <rob@firegiant.com> | 2018-07-19 00:58:00 -0700 |
---|---|---|
committer | Rob Mensching <rob@firegiant.com> | 2018-07-21 07:36:59 -0700 |
commit | 2724cfee4c163f3297ee25edfd2372767cfd4945 (patch) | |
tree | 8cdda34c83bea014a586a491e3b4b187ad8f16da /src/WixToolset.BuildTasks/CreateItemAvoidingInference.cs | |
parent | 4d40bef9cf51b8cff7e1f6a73fdf68b9722eb8a0 (diff) | |
download | wix-2724cfee4c163f3297ee25edfd2372767cfd4945.tar.gz wix-2724cfee4c163f3297ee25edfd2372767cfd4945.tar.bz2 wix-2724cfee4c163f3297ee25edfd2372767cfd4945.zip |
Move tool projects to Tools repo
Diffstat (limited to 'src/WixToolset.BuildTasks/CreateItemAvoidingInference.cs')
-rw-r--r-- | src/WixToolset.BuildTasks/CreateItemAvoidingInference.cs | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/src/WixToolset.BuildTasks/CreateItemAvoidingInference.cs b/src/WixToolset.BuildTasks/CreateItemAvoidingInference.cs deleted file mode 100644 index 84816cac..00000000 --- a/src/WixToolset.BuildTasks/CreateItemAvoidingInference.cs +++ /dev/null | |||
@@ -1,60 +0,0 @@ | |||
1 | // 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. | ||
2 | |||
3 | namespace WixToolset.BuildTasks | ||
4 | { | ||
5 | using System; | ||
6 | using System.Collections; | ||
7 | using System.Collections.Generic; | ||
8 | using System.Globalization; | ||
9 | using System.IO; | ||
10 | using System.Xml; | ||
11 | using Microsoft.Build.Framework; | ||
12 | using Microsoft.Build.Utilities; | ||
13 | |||
14 | /// <summary> | ||
15 | /// This task assigns Culture metadata to files based on the value of the Culture attribute on the | ||
16 | /// WixLocalization element inside the file. | ||
17 | /// </summary> | ||
18 | public class CreateItemAvoidingInference : Task | ||
19 | { | ||
20 | private string inputProperties; | ||
21 | private ITaskItem[] outputItems; | ||
22 | |||
23 | /// <summary> | ||
24 | /// The output items. | ||
25 | /// </summary> | ||
26 | [Output] | ||
27 | public ITaskItem[] OuputItems | ||
28 | { | ||
29 | get { return this.outputItems; } | ||
30 | } | ||
31 | |||
32 | /// <summary> | ||
33 | /// The properties to converty to items. | ||
34 | /// </summary> | ||
35 | [Required] | ||
36 | public string InputProperties | ||
37 | { | ||
38 | get { return this.inputProperties; } | ||
39 | set { this.inputProperties = value; } | ||
40 | } | ||
41 | |||
42 | /// <summary> | ||
43 | /// Gets a complete list of external cabs referenced by the given installer database file. | ||
44 | /// </summary> | ||
45 | /// <returns>True upon completion of the task execution.</returns> | ||
46 | public override bool Execute() | ||
47 | { | ||
48 | List<ITaskItem> newItems = new List<ITaskItem>(); | ||
49 | |||
50 | foreach (string property in this.inputProperties.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries)) | ||
51 | { | ||
52 | newItems.Add(new TaskItem(property)); | ||
53 | } | ||
54 | |||
55 | this.outputItems = newItems.ToArray(); | ||
56 | |||
57 | return true; | ||
58 | } | ||
59 | } | ||
60 | } | ||