Open matthewacme opened 2 months ago
@matthewacme, are you trying to enable auth for native AAD auth or B2C /external ID ?
@iulico-1 The current build of my app, using the following project definition and package references of
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0-windows10.0.22621.0</TargetFramework>
<TargetPlatformMinVersion>10.0.19044.0</TargetPlatformMinVersion>
<LangVersion>latest</LangVersion>
<RootNamespace>MyRadar.WinUI.Services</RootNamespace>
<RuntimeIdentifiers>win-x86;win-x64;win-arm64</RuntimeIdentifiers>
<UseWinUI>true</UseWinUI>
<SupportedOSPlatformVersion>10.0.20348.0</SupportedOSPlatformVersion>
<Platforms>x86;x64;ARM64</Platforms>
<Nullable>enable</Nullable>
<ImplicitUsings>disable</ImplicitUsings>
</PropertyGroup>
...
<ItemGroup>
<PackageReference Include="AutoMapper" Version="13.0.1" />
<PackageReference Include="AzureMapsRestToolkit" Version="7.1.0" />
<PackageReference Include="Microsoft.Identity.Client" Version="4.63.0" />
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.5.240802000" />
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.22621.3233" />
<PackageReference Include="Microsoft.Windows.CsWinRT" Version="2.0.8" />
</ItemGroup>
Allows me to currently USE B2C / external ID, that is we are able to currently allow our users to create and use MSAL to set up B2C registration / login / identity with our AD system.
As soon as I attempt update the Microsoft.Identity.Client to 4.64.0 (from 4.63.0) I get the compile error. Upgrading the other references does not "fix" the issue.
Duplicate of https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/issues/4826
Try WinAppSDK 1.6 which was released just after this issue was posted. https://blogs.windows.com/windowsdeveloper/2024/09/04/whats-new-in-windows-app-sdk-1-6/ "Decoupled WebView2 versioning"
@charlesroddie Unfortunately it is not possible to upgrade to the WinAppSDK 1.6. I tried that about 2 weeks ago, and the bugs that upgrade introduced were so extensive that our app would not run.
I filed various bugs with the WinAppSDK team in regards to the issues that were raised with an attempt to upgrade to 1.6.
I'm going to have to wait until at least their next release / bug fix for 1.6 before I can upgrade
Library version used
4.64.0
.NET version
Microsoft.WindowsAppSDK 1.5.240802000