Skip to content

Commit

Permalink
[tests] Install the 'mobile-librarybuilder-net9' workload to enable b…
Browse files Browse the repository at this point in the history
…uilding .NET 9 projects.
  • Loading branch information
rolfbjarne committed Jan 3, 2025
1 parent 7ade47d commit cb13402
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/dotnet/UnitTests/PackTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,8 @@ public void MultiTargetLibraryProject (ApplePlatform platform)
{
Configuration.IgnoreIfIgnoredPlatform (platform);

DotNet.InstallWorkload ("mobile-librarybuilder-net9");

// Get all the supported API versions
var supportedApiVersion = Configuration.GetVariableArray ($"SUPPORTED_API_VERSIONS_{platform.AsString ().ToUpperInvariant ()}");
supportedApiVersion = DotNetProjectTest.RemovePostCurrentOnMacCatalyst (supportedApiVersion, platform);
Expand Down
4 changes: 4 additions & 0 deletions tests/dotnet/UnitTests/ProjectTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1603,6 +1603,8 @@ public void BuildNet9_0App (ApplePlatform platform, string runtimeIdentifiers)
Configuration.IgnoreIfIgnoredPlatform (platform);
Configuration.AssertRuntimeIdentifiersAvailable (platform, runtimeIdentifiers);

DotNet.InstallWorkload ("mobile-librarybuilder-net9");

var project_path = GetProjectPath (project, runtimeIdentifiers: runtimeIdentifiers, platform: platform, out var appPath, netVersion: "net9.0");
Clean (project_path);
var properties = GetDefaultProperties (runtimeIdentifiers);
Expand Down Expand Up @@ -2072,6 +2074,8 @@ public void MultiTargetLibrary (ApplePlatform platform)
{
Configuration.IgnoreIfIgnoredPlatform (platform);

DotNet.InstallWorkload ("mobile-librarybuilder-net9");

// Get all the supported API versions
var supportedApiVersion = Configuration.GetVariableArray ($"SUPPORTED_API_VERSIONS_{platform.AsString ().ToUpperInvariant ()}");
supportedApiVersion = RemovePostCurrentOnMacCatalyst (supportedApiVersion, platform);
Expand Down

0 comments on commit cb13402

Please sign in to comment.