[Bug] NETSDK1149 Microsoft.Identity.Client.Desktop.dll cannot be referenced because it uses built-in support for WinRT, which is no longer supported in .NET 5 and higher.
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?
Microsoft.Identity.Client.Desktop 4.50.0 Platform
<TargetFrameworks>net7.0-windows</TargetFrameworks>
What authentication flow has the issue?
- Desktop / Mobile
- [x ] Interactive
- Integrated Windows Authentication
- Username Password
- Device code flow (browserless)
- Web app
- Authorization code
- On-Behalf-Of
- Daemon app
- Service to Service calls
Other?
Severity Code Description Project Line File Suppression State Error NETSDK1149 Microsoft.Identity.Client.Desktop.dll cannot be referenced because it uses built-in support for WinRT, which is no longer supported in .NET 5 and higher. An updated version of the component supporting .NET 5 is needed. For more information, see https://aka.ms/netsdk1149 RUB.IG.AdminUI 1033 C:\Program Files\dotnet\sdk\7.0.200\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.targets
Is this a new or existing app?
Repro
var your = (code) => here;
Expected behavior Be able to perform a build
Actual behavior Severity Code Description Project Line File Suppression State Error NETSDK1149 Microsoft.Identity.Client.Desktop.dll cannot be referenced because it uses built-in support for WinRT, which is no longer supported in .NET 5 and higher. An updated version of the component supporting .NET 5 is needed. For more information, see https://aka.ms/netsdk1149 RUB.IG.AdminUI 1033 C:\Program Files\dotnet\sdk\7.0.200\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.targets
Possible solution
Additional context / logs / screenshots / links to code
Add any other context about the problem here, such as logs and screenshots, and even links to code.
Issue Analytics
- State:
- Created 7 months ago
- Comments:8 (1 by maintainers)
Top GitHub Comments
@bgavrilMS I don’t; the code comes from the CommunityToolkit Graph-Controls Sample.
Just to confirm, does your app work now?