question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug] Cannot build apps targeting net7.0-Windows10.0.x.x

See original GitHub issue

Logs 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.

BUILD LOG

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.

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:closed
  • Created 6 months ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
bgavrilMScommented, Mar 29, 2023

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.

0reactions
pmaytakcommented, May 5, 2023

Closing as external. WindowsAppSDK repo would be more appropriate for clarifying that library’s behavior.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot build apps targeting net7.0-Windows10.0.x.x win ...
Describe the bug Add MSAL Client library to library project targeting net7.0-windows10.0.x (or net6.0-windows10.0.x + WindowsAppSDK) and project build fails ...
Read more >
Started to get "This project is targeting a version of .NET ...
1). In VS Installer > Individual components tab > check if components like .NET 5.0 Runtime or related components are checked. If it/they...
Read more >
How to set target net7.0 -windows?
2 Answers. No need to install VS Preview at all. Go to "Options -> Preview Features" and enable the "Use previews of the...
Read more >
Cannot debug net6.0-macos Apps - Developer Community
Possible reasons for this include: * You misspelled a built-in dotnet command. * You intended to execute a .NET program, but dotnet-/Users/fak/ ...
Read more >
Upgrade Your Existing Projects to .NET7 - ABP Community
In this article, I will share our experiences while upgrading to .NET 7.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found