This app is a minimum WPF app to reproduce the error 'Unable to load DLL 'msalruntime_x86' when trying to follow this doc to use the new version (4.47.2-preview) of Microsoft.Identity.Client.Broker instead of Microsoft.Identity.Client.Desktop.
When started, this app will try to create a IPublicClientApplication client and call AcquireTokenInteractive method. See code here. The following error occurs at this point:
Microsoft.Identity.Client.MsalClientException: 'Unable to load DLL 'msalruntime_x86': The specified module could not be found. (Exception from HRESULT: 0x8007007E) See https://aka.ms/msal-net-wam#troubleshooting'
Inner Exception
DllNotFoundException: Unable to load DLL 'msalruntime_x86': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
- Clone this repo.
- Replace the fake client id with a valid client id.
- Build the solution to restore all nuget packages.
- Start the project "WPF.Package".