Uno.Samples icon indicating copy to clipboard operation
Uno.Samples copied to clipboard

chore: Upgrade - Localizable Sample to run with latest uno and latest…

Open aesteves900 opened this issue 3 years ago • 6 comments

… VS 2022

aesteves900 avatar Oct 04 '22 13:10 aesteves900

@jeromelaban , what is the correct way to solve this issue, please?

image

aesteves900 avatar Oct 05 '22 22:10 aesteves900

@jeromelaban, I consistently get the error below because there is no compatible version of Uno.UniversalImageLoader is compatible with UWP. What is the correct way to figure out this?

The reference comes from the Androd project.

NU1202: Package Uno.UniversalImageLoader 1.9.35 is not compatible with uap10.0.17134 (UAP,Version=v10.0.17134) / win10-x64. Package Uno.UniversalImageLoader 1.9.35 supports:

  • monoandroid10.0 (MonoAndroid,Version=v10.0)
  • net6.0-android30.0 (.NETCoreApp,Version=v6.0) NU1202: Package Uno.UniversalImageLoader 1.9.35 is not compatible with uap10.0.17134 (UAP,Version=v10.0.17134) / win10-arm. Package Uno.UniversalImageLoader 1.9.35 supports:
  • monoandroid10.0 (MonoAndroid,Version=v10.0)
  • net6.0-android30.0 (.NETCoreApp,Version=v6.0) NU1202: Package Uno.UniversalImageLoader 1.9.35 is not compatible with uap10.0.17134 (UAP,Version=v10.0.17134). Package Uno.UniversalImageLoader 1.9.35 supports:
  • monoandroid10.0 (MonoAndroid,Version=v10.0)
  • net6.0-android30.0 (.NETCoreApp,Version=v6.0) NU1202: Package Uno.UniversalImageLoader 1.9.35 is not compatible with uap10.0.17134 (UAP,Version=v10.0.17134) / win10-arm64-aot. Package Uno.UniversalImageLoader 1.9.35 supports:
  • monoandroid10.0 (MonoAndroid,Version=v10.0)
  • net6.0-android30.0 (.NETCoreApp,Version=v6.0) NU1202: Package Uno.UniversalImageLoader 1.9.35 is not compatible with uap10.0.17134 (UAP,Version=v10.0.17134) / win10-arm-aot. Package Uno.UniversalImageLoader 1.9.35 supports:
  • monoandroid10.0 (MonoAndroid,Version=v10.0)
  • net6.0-android30.0 (.NETCoreApp,Version=v6.0) NU1202: Package Uno.UniversalImageLoader 1.9.35 is not compatible with uap10.0.17134 (UAP,Version=v10.0.17134) / win10-x64-aot. Package Uno.UniversalImageLoader 1.9.35 supports:
  • monoandroid10.0 (MonoAndroid,Version=v10.0)
  • net6.0-android30.0 (.NETCoreApp,Version=v6.0) NU1202: Package Uno.UniversalImageLoader 1.9.35 is not compatible with uap10.0.17134 (UAP,Version=v10.0.17134) / win10-x86. Package Uno.UniversalImageLoader 1.9.35 supports:
  • monoandroid10.0 (MonoAndroid,Version=v10.0)

aesteves900 avatar Oct 10 '22 15:10 aesteves900

@jeromelaban, I consistently get the error below because there is no compatible version of Uno.UniversalImageLoader is compatible with UWP. What is the correct way to figure out this?

The issue is in the original code: https://github.com/unoplatform/Uno.Samples/blob/c4bf9428de1cdcaf349f40a1dd125d0d8768e251/UI/LocalizationSamples/Localization/UnoLocalization.UWP/UnoLocalization.Uwp.csproj#L16

You can remove the line as this package is not compatible with UWP.

jeromelaban avatar Oct 11 '22 02:10 jeromelaban

@jeromelaban , I applied the same solution from another project's updating System.Memory NuGet packaged, but with these two projects with no success. Do you have any clue about that?

UnoLocalization.Droid UnoLocalization.Tizen

error : Generation failed: System.MissingMethodException: Method not found: 'System.ReadOnlySpan1<Char> Microsoft.IO.Path.GetFileName(System.ReadOnlySpan1<Char>)'. [D:\a\1\s\UI\LocalizationSamples\Localization\UnoLocalization.Skia.Tizen\UnoLocalization.Skia.Tizen.csproj] MSBUILD : error : at Microsoft.Build.Shared.FileMatcher.IsFileNameMatch(String path, String pattern) [D:\a\1\s\UI\LocalizationSamples\Localization\

aesteves900 avatar Oct 12 '22 12:10 aesteves900

This particular error only happens when Uno has not been updated to latest. Make sure there are no leftovers from previous versions.

jeromelaban avatar Oct 13 '22 13:10 jeromelaban

You're missing an update in the tizen project:

MSBUILD : error : Generation failed: System.MissingMethodException: Method not found: 'System.ReadOnlySpan1<Char> Microsoft.IO.Path.GetFileName(System.ReadOnlySpan1<Char>)'. [D:\a\1\s\UI\LocalizationSamples\RuntimeCultureSwitching\UnoLocalization.Skia.Tizen\UnoLocalization.Skia.Tizen.csproj]

jeromelaban avatar Oct 18 '22 12:10 jeromelaban