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.

Identity Client package incompatibility?

See original GitHub issue

I am working on a WinUI 3 app as part of reunion 0.5.7 (I was able to reproduce using the 0.8 preview as well.)

A blank packaged application will run, however once I build out my app, I start getting errors.

This is the error VS reports: WMC9999 Cannot find type System.Windows.DependencyObject in module WindowsBase.dll. A scan of the output says that this is happening in the MarkupCompilePass2 target Repeated cleans, including closing vs and manually deleting vs/obj/bin folders does not help.

When I try to build from the command line, I get a different error:

Task "CompileXaml"
        Xaml Compiler Marker: 3:22:23 PM: 674 perfXC_StartPass1, ExampleWinUIApplication
        Xaml Compiler Marker: 3:22:23 PM: 693 perfXC_FingerprintCheck, New2: c:\repos\Example.winnativeapp\src\working\templates\ExampleWinUIapplication\Example.httpclient.public\bin\x64\debug\net5.0\Example.httpclient.public.dll
        Xaml Compiler Marker: 3:22:23 PM: 694 perfXC_FingerprintCheck, List of Assemblies Changed
        Xaml Compiler Marker: 3:22:23 PM: 694 perfXC_FingerprintCheck, Reference Assemblies Fingerprint Changed
        Xaml Compiler Marker: 3:22:23 PM: 695 perfXC_CreatingTypeUniverse
        Xaml Compiler Marker: 3:22:23 PM: 699 perfXC_CreatedTypeUniverse
        Xaml Compiler Marker: 3:22:23 PM: 700 perfXC_CreatingSchemaContext
  1:7>C:\Users\me\.nuget\packages\microsoft.projectreunion.winui\0.8.0-preview\buildTransitive\Microsoft.UI.Xaml.Markup.Compiler.interop.targets(465,9): Xaml Internal Error error WMC9999: **Operation is not supported on this platform. [C:\Repos\Example.WinNativeApp\src\working\templates\ExampleWinUIApplication\ExampleWinUIApplication\ExampleWinUIApplication.csproj]
           at System.Runtime.InteropServices.RuntimeEnvironment.GetRuntimeInterfaceAsObject(Guid clsid, Guid riid)**
           at System.Reflection.Adds.MetadataDispenser.GetDispenserShim()
           at System.Reflection.Adds.MetadataDispenser.OpenFileAsFileMapping(String fileName)
           at Microsoft.UI.Xaml.Markup.Compiler.Lmr.Loader.OpenMetadataFile(String filename)
           at Microsoft.UI.Xaml.Markup.Compiler.Lmr.Loader.ReadAssemblyFromFile(String file)
           at Microsoft.UI.Xaml.Markup.Compiler.Lmr.XamlTypeUniverse.LoadAssemblyFromFile(String path)
           at Microsoft.UI.Xaml.Markup.Compiler.CompileXamlInternal.TryLoadAssembly(String reference)
           at Microsoft.UI.Xaml.Markup.Compiler.CompileXamlInternal.LoadAssembly(String reference)
           at Microsoft.UI.Xaml.Markup.Compiler.CompileXamlInternal.LoadAssemblyItem(String item, Boolean isSystemAssembly)
           at Microsoft.UI.Xaml.Markup.Compiler.CompileXamlInternal.LoadAssemblyItems(List`1 referenceAssemblies, Boolean isSystemAssembly)
           at Microsoft.UI.Xaml.Markup.Compiler.CompileXamlInternal.LoadSchemaContext()
           at Microsoft.UI.Xaml.Markup.Compiler.CompileXamlInternal.DoExecute()
        Xaml Compiler Marker: 3:22:23 PM: 727 perfXC_EndPass1, ExampleWinUIApplication

I’m assuming there’s something I’m referencing that the compiler doesn’t like, but isn’t bad enough for VS to pick it up earlier. I just don’t know where to go from here to find it. Any help would be appreciated.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:19 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ADD-David-Antolincommented, Mar 13, 2023

The errors:

Error NETSDK1082 There was no runtime pack for Microsoft.WindowsDesktop.App.WindowsForms available for the specified RuntimeIdentifier 'win10-arm'. Error NETSDK1082 There was no runtime pack for Microsoft.WindowsDesktop.App.WindowsForms available for the specified RuntimeIdentifier 'win10-arm-aot'.

Is still happening if you add PackageReference Microsoft.Identity.Client with version between 4.25.0 and 4.50.0 (current last stable in nuget.org) with Microsoft.WindowsAppSDK from 1.0.0 to 1.2.230217.4 (current last stable in nuget.org).

1reaction
PaulSorauer-IPGcommented, Aug 19, 2021

Hi @Scottj1s

Just an FYI - I’ve put a comment here, in the hopes that it’ll draw specific attention to the .NET 6.0 / ProjectReunion 0.8.1 context.

As mentioned in that thread, I tried different versions of the library but had no success.

Read more comments on GitHub >

github_iconTop Results From Across the Web

There are no versions available for the package
Client. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages ... Client' is incompatible with 'all' frameworks in project....
Read more >
"Could not load file or assembly 'Microsoft.Identity.Client ...
You have to find the module Microsoft.Identity.Client in the output of that command. Tip: in visual studio, you can use CRTL+F to open...
Read more >
Unable to resolve reference 'Microsoft.Identity.Client'. Is the ...
I am using Unity Editor 2021.3.10f1, building for Hololens 2 with Universal Windows Platform build support. The Api compatibility level is set ...
Read more >
Microsoft.Identity.Client 4.55.0
This package contains the binaries of the Microsoft Authentication Library for .NET (MSAL.NET). MSAL.NET makes it easy to obtain tokens from the Microsoft ......
Read more >
Syncfusion.MAUI.Charts Nuget incompatibility with ...
I am using Nuget Microsoft.Identity.Client 4.48.1 package. When I add the reference to the Synfusion.Maui.Charts 20.3.59 package the application stops compiling ...
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