From 0a26d655c698e7664a0a97d72ef147ab17e79354 Mon Sep 17 00:00:00 2001 From: Pedro Jesus Date: Wed, 31 Jan 2024 18:42:20 -0300 Subject: [PATCH] fix: Make it an array --- src/Resizetizer/src/GeneratePackageAppxManifest.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/Resizetizer/src/GeneratePackageAppxManifest.cs b/src/Resizetizer/src/GeneratePackageAppxManifest.cs index d0a44571..fea255f9 100644 --- a/src/Resizetizer/src/GeneratePackageAppxManifest.cs +++ b/src/Resizetizer/src/GeneratePackageAppxManifest.cs @@ -24,7 +24,7 @@ public class GeneratePackageAppxManifest_v0 : Task public string IntermediateOutputPath { get; set; } = null!; [Required] - public ITaskItem AppxManifest { get; set; } = null!; + public ITaskItem[] AppxManifest { get; set; } = []; public string? TargetFramework { get; set; } @@ -60,7 +60,12 @@ public override bool Execute() var filename = Path.Combine(IntermediateOutputPath, GeneratedFilename ?? "Package.appxmanifest"); - var appx = XDocument.Load(AppxManifest.ItemSpec); + if (AppxManifest.Length > 1) + { + Log.LogWarning("Multiple AppxManifest files were provided. Only the first one will be used."); + } + + var appx = XDocument.Load(AppxManifest[0].ItemSpec); UpdateManifest(appx);