Closed sakshi173 closed 1 month ago
@Youssef1313 could you take a look? This is likely a regression.
@jeromelaban This is a breaking change from Uno.Themes
Those keys are removed. The crash is:
fail: CommunityToolkit.WinUI.Lottie.LottieVisualSourceBase[0]
Failed to update lottie player for [embedded://uno.material/Uno.Material.Assets.MaterialDeterminate.json]
System.IO.FileNotFoundException: Could not load file or assembly 'uno.material, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
File name: 'uno.material, Culture=neutral, PublicKeyToken=null'
at System.Reflection.RuntimeAssembly.InternalLoad(AssemblyName assemblyName, StackCrawlMark& stackMark, AssemblyLoadContext assemblyLoadContext, RuntimeAssembly requestingAssembly, Boolean throwOnFileNotFound)
at System.Reflection.Assembly.Load(String assemblyString)
at CommunityToolkit.WinUI.Lottie.LottieVisualSourceBase.TryLoadEmbeddedJson(Uri uri, CancellationToken ct) in /__w/1/s/src/AddIns/Uno.UI.Lottie/LottieVisualSourceBase.cs:line 286
at CommunityToolkit.WinUI.Lottie.LottieVisualSourceBase.TryLoadDownloadJson(Uri uri, CancellationToken ct) in /__w/1/s/src/AddIns/Uno.UI.Lottie/LottieVisualSourceBase.cs:line 253
at CommunityToolkit.WinUI.Lottie.LottieVisualSourceBase.<>c__DisplayClass13_0.<<InnerUpdate>g__SetProperties|0>d.MoveNext() in /__w/1/s/src/AddIns/Uno.UI.Lottie/LottieVisualSource.Skottie.cs:line 93
The deleted key is still referenced by https://github.com/unoplatform/Uno.Themes/blob/db37dce41bcb0b663461cddd18ee645b790044b9/src/library/Uno.Material/Styles/Controls/v2/ProgressRing.xaml#L14-L17
/cc @kazo0
Ah, this is an unintended result of the split of the csproj in Material. We now have an Uno.Material.WinUI.csproj and an Uno.Material.csproj. So now for WinUI apps the embedded path should be embedded://Uno.Material/Uno.Material.WinUI.Assets.MaterialDeterminate.json
instead of embedded://Uno.Material/Uno.Material.Assets.MaterialDeterminate.json
Trying to think of a better solution for this :/
cc: @Youssef1313 / @jeromelaban
Current behavior
Expected behavior
ProgressRing should be present.
How to reproduce it (as minimally and precisely as possible)
Workaround
No response
Works on UWP/WinUI
None
Environment
No response
NuGet package version(s)
No response
Affected platforms
WebAssembly, Android, iOS
IDE
No response
IDE version
No response
Relevant plugins
No response
Anything else we need to know?
No response