DevExpress.Build

 

 1 using System.Collections.Generic;

 2 using Microsoft.Build.AppxPackage;

 3 using Microsoft.Build.Framework;

 4 

 5 namespace DevExpress.Build

 6 {

 7     public class DXGeneratePriConfigurationFiles : GeneratePriConfigurationFiles

 8     {

 9         public override bool Execute()

10         {

11             List<ITaskItem> list = new List<ITaskItem>();

12             ITaskItem[] layoutFiles = base.LayoutFiles;

13             for (int i = 0; i < layoutFiles.Length; i++)

14             {

15                 ITaskItem taskItem = layoutFiles[i];

16                 if (!taskItem.ItemSpec.EndsWith("xaml"))

17                 {

18                     list.Add(taskItem);

19                 }

20             }

21             //base.set_LayoutFiles(list.ToArray());

22    base.LayoutFiles=list.ToArray();

23             return base.Execute();

24         }

25     }

26 }

 

你可能感兴趣的:(DevExpress)