Identity Client package incompatibility?
See original GitHub issueI 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:
- Created 2 years ago
- Comments:19 (4 by maintainers)
Top GitHub Comments
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 between4.25.0
and4.50.0
(current last stable in nuget.org) withMicrosoft.WindowsAppSDK
from 1.0.0 to 1.2.230217.4 (current last stable in nuget.org).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.