Skip to content

Commit

Permalink
chore: use the old API to make CI happy
Browse files Browse the repository at this point in the history
  • Loading branch information
pictos committed Feb 2, 2024
1 parent 10ded15 commit 26a33cd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion 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; } = [];
public ITaskItem[] AppxManifest { get; set; } = Array.Empty<ITaskItem>();

public string? TargetFramework { get; set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,12 @@ protected GeneratePackageAppxManifest_v0 GetNewTask(
IntermediateOutputPath = DestinationDirectory,
BuildEngine = this,
GeneratedFilename = generatedFilename,
AppxManifest = [new TaskItem(manifest)],
AppxManifest = new []{new TaskItem(manifest)},
ApplicationId = guid,
ApplicationDisplayVersion = displayVersion,
ApplicationVersion = version,
ApplicationTitle = displayName,
AppIcon = appIcon == null ? null : [appIcon],
SplashScreen = splashScreen == null ? null : [splashScreen],
ApplicationTitle = displayName,AppIcon = appIcon == null ? null : new[] { appIcon },
SplashScreen = splashScreen == null ? null : new[] { splashScreen },
TargetFramework = "windows"
};
}
Expand All @@ -57,9 +56,8 @@ protected GeneratePackageAppxManifest_v0 GetNewTask(
ApplicationId = guid,
ApplicationDisplayVersion = displayVersion,
ApplicationVersion = version,
ApplicationTitle = displayName,
AppIcon = appIcon == null ? null : [appIcon],
SplashScreen = splashScreen == null ? null : [splashScreen],
ApplicationTitle = displayName,AppIcon = appIcon == null ? null : new[] { appIcon },
SplashScreen = splashScreen == null ? null : new[] { splashScreen },
TargetFramework = "windows"
};
}
Expand Down Expand Up @@ -217,7 +215,7 @@ public void TaskShouldFileAWarningIfMoreThanOneManifestIsProvided()
{
// Arrange
var taskItem = new TaskItem("testdata/appxmanifest/typical.appxmanifest");
var task = GetNewTask(appxManifests: [taskItem, taskItem]);
var task = GetNewTask(appxManifests: new [] {taskItem, taskItem});

// Act
task.Execute();
Expand Down

0 comments on commit 26a33cd

Please sign in to comment.