Skip to content

Commit

Permalink
fix: Make it an array
Browse files Browse the repository at this point in the history
  • Loading branch information
pictos committed Jan 31, 2024
1 parent 92ed3e5 commit 0a26d65
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/Resizetizer/src/GeneratePackageAppxManifest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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; }

Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit 0a26d65

Please sign in to comment.