File tree Expand file tree Collapse file tree 2 files changed +8
-11
lines changed
Uno.Extensions.Authentication.MSAL Expand file tree Collapse file tree 2 files changed +8
-11
lines changed Original file line number Diff line number Diff line change 173173
174174 <Target Name =" __RemoveUnoRuntimeWasm"
175175 AfterTargets=" UnoImplicitPackages" >
176+ <ItemGroup Condition =" '$(IsUnoHead)' != 'true' AND $([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'browserwasm'" >
176177 <!--
177178 Disable explicit references to Uno.WinUI.Runtime.WebAssembly in order to avoid using JSInvoke directly
178179 This change is done manually here to avoid
179180 -->
180- <ItemGroup >
181- <PackageReference Remove =" Uno.WinUI.Runtime.WebAssembly"
182- Condition =" '$(IsUnoHead)' != 'true' AND $([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'browserwasm'" />
181+ <PackageReference Remove =" Uno.WinUI.Runtime.WebAssembly" />
182+
183+ <!--
184+ We also remove the Uno.WinUI.WebAssembly package reference, as it is not needed in this case and will break the skia renderer
185+ https://github.com/unoplatform/uno/issues/20792
186+ -->
187+ <PackageReference Remove =" Uno.WinUI.WebAssembly" />
183188 </ItemGroup >
184189 </Target >
185190
Original file line number Diff line number Diff line change 44using Uno . Extensions . Logging ;
55using LogLevel = Microsoft . Extensions . Logging . LogLevel ;
66#if UNO_EXT_MSAL
7- #if BROWSERWASM1_0_OR_GREATER
8- using MsalCacheHelper = Microsoft . Identity . Client . Extensions . Msal . Wasm . MsalCacheHelper ;
9- #else
107using MsalCacheHelper = Microsoft . Identity . Client . Extensions . Msal . MsalCacheHelper ;
118#endif
12- #endif
139
1410namespace Uno . Extensions . Authentication . MSAL ;
1511
@@ -193,11 +189,7 @@ private async Task SetupStorage()
193189 var builder = new StorageCreationPropertiesBuilder ( CacheFileName , folderPath ) ;
194190 Settings ? . Store ? . Invoke ( builder ) ;
195191 var storage = builder . Build ( ) ;
196- #if BROWSERWASM1_0_OR_GREATER
197- var cacheHelper = await MsalCacheHelper . CreateAsync ( Logger , storage ) ;
198- #else
199192 var cacheHelper = await MsalCacheHelper . CreateAsync ( storage ) ;
200- #endif
201193 cacheHelper . RegisterCache ( _pca ! . UserTokenCache ) ;
202194 if ( Logger . IsEnabled ( LogLevel . Trace ) )
203195 {
You can’t perform that action at this time.
0 commit comments