Skip to content

Commit

Permalink
Merge pull request #16393 from unoplatform/mergify/bp/release/stable/…
Browse files Browse the repository at this point in the history
…5.2/pr-16387

Fix invalid implicit packages read (backport #16387)
  • Loading branch information
jeromelaban authored Apr 21, 2024
2 parents f0ade18 + d3290fb commit c6bfb66
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions build/test-scripts/run-netcore-mobile-template-tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ $projects =
@("5.2/uno52blank/uno52blank/uno52blank.csproj", @("-f", "net8.0-android"), $true),
@("5.2/uno52blank/uno52blank/uno52blank.csproj", @("-f", "net8.0-maccatalyst"), $true),
@("5.2/uno52blank/uno52blank/uno52blank.csproj", @("-f", "net8.0-desktop"), $true),
@("5.2/uno52blank/uno52blank/uno52blank.csproj", @("-f", "net8.0-desktop", "-p:UnoFeatures=Material%3BExtensions%3BToolkit%3BCSharpMarkup%3BSvg"), $true),

# Default mode for the template is WindowsAppSDKSelfContained=true, which requires specifying a target platform.
@("5.2/uno52blank/uno52blank/uno52blank.csproj", @("-p:Platform=x86" , "-p:TargetFramework=net8.0-windows10.0.19041"), $false),
Expand Down
2 changes: 1 addition & 1 deletion src/Uno.Sdk/Services/PackageManifest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public PackageManifest(TaskLoggingHelper log, string targetFrameworkVersion)

public string? GetPackageVersion(string packageId)
{
var group = _defaultManifest.SingleOrDefault(group => group.Packages.Any(p => p.Equals(packageId, System.StringComparison.InvariantCultureIgnoreCase)));
var group = Manifest.SingleOrDefault(group => group.Packages.Any(p => p.Equals(packageId, System.StringComparison.InvariantCultureIgnoreCase)));
if (group is null)
{
_log.LogMessage(MessageImportance.Normal, "Could not locate a package version for the package '{0}'.", packageId);
Expand Down
7 changes: 6 additions & 1 deletion src/Uno.Sdk/targets/Uno.DefaultItems.Resizetizer.targets
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@
<UnoSplashScreenFile Condition="$(UnoSplashScreenFile) == ''">$(UnoSplashFolder)splash_screen.svg</UnoSplashScreenFile>
<UnoSplashScreenBaseSize Condition="$(UnoSplashScreenBaseSize) == ''">128,128</UnoSplashScreenBaseSize>
<UnoSplashScreenColor Condition="$(UnoSplashScreenColor) == ''">#FFFFFF</UnoSplashScreenColor>
<_UnoResizetizerIsCompatibleApp Condition=" $(_IsUnoSingleProjectAndLegacy) == 'true' ">true</_UnoResizetizerIsCompatibleApp>

<!-- Support net8.0, without a platform identifier -->
<_UnoResizetizerIsCompatibleApp Condition="
$(_IsUnoSingleProjectAndLegacy) == 'true'
AND '$(TargetFramework)' != ''
AND $([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == '' ">true</_UnoResizetizerIsCompatibleApp>
</PropertyGroup>

<ItemGroup Condition=" $(_IsUnoSingleProjectAndLegacy) == 'true' ">
Expand Down

0 comments on commit c6bfb66

Please sign in to comment.