[Bug] Cannot build apps targeting net7.0-Windows10.0.x.x
See original GitHub issueLogs and network traces Without logs or traces, it is unlikely that the team can investigate your issue. Capturing logs and network traces is described in Logging wiki.
Which version of MSAL.NET are you using?
Issue applies from versions 4.25.0 to 4.51.0
<PackageReference Include="Microsoft.Identity.Client" Version="4.51.0" />
Platform
- net7.0_windows10.0.18362
- net6.0_windows10.0.18362 + Microsoft.WindowsAppSDK, version 1.1.3
What authentication flow has the issue? WINDOWS DESKTOP (never get to the point where any of the following applies) * [ ] Interactive * [ ] Integrated Windows Authentication * [ ] Username Password * [ ] Device code flow (browserless)
Other? The following may or may not be related but the symptoms are different.
- https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/issues/2673
- https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/issues/3236
- https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/issues/3583
- https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/issues/3941\
- https://github.com/microsoft/microsoft-ui-xaml/issues/5143
However, the symptoms are the same as: https://github.com/dotnet/maui/issues/6052
Is this a new or existing app? App is being ported from UWP
Repro https://github.com/baskren/WinuiMsalFail
Expected behavior When MSAL library is added to a Windows 10+ project, the app is expected to be able to build
Actual behavior Build process fails due to the following errors:
C:\Program Files\dotnet\sdk\7.0.300-preview.23122.5\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(448,5): error NETSDK1082: There was no runtime pack for Microsoft.WindowsDesktop.App.WindowsForms available for the specified RuntimeIdentifier 'win10-arm'.
C:\Program Files\dotnet\sdk\7.0.300-preview.23122.5\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(448,5): error NETSDK1082: There was no runtime pack for Microsoft.WindowsDesktop.App.WindowsForms available for the specified RuntimeIdentifier 'win10-arm-aot'.
Possible solution PLEASE LET ME KNOW IF THERE IS ONE!
Additional context / logs / screenshots / links to code
Issue Analytics
- State:
- Created 6 months ago
- Comments:8 (4 by maintainers)
We are going to make some changes so that MSAL no longer references Windows SDK in the next version (out in a few days) - 4.52.0. It might solve this issue.
MSAL can target ARM.
Closing as external. WindowsAppSDK repo would be more appropriate for clarifying that library’s behavior.