Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xaml Internal Error error WMC9999: Operation is not supported on this platform. #5325

Closed
kant2002 opened this issue Jun 30, 2021 · 3 comments
Labels
duplicate This issue or pull request already exists

Comments

@kant2002
Copy link

Create WinUI desktop application (non-UWP)
When attempt to run using dotnet run

       Using "CompileXaml" task from assembly "....packages\microsoft.projectreunion.winui\0.8.0\buildTransitive\..\tools\Microsoft.UI.Xaml.Markup.Compiler.dll".
       Task "CompileXaml"
         Xaml Compiler Marker: 5:30:18 PM: 378 perfXC_StartPass1, App1
         Xaml Compiler Marker: 5:30:18 PM: 396 perfXC_FingerprintCheck, Reference Assemblies Fingerprint Changed
         Xaml Compiler Marker: 5:30:18 PM: 397 perfXC_CreatingTypeUniverse
         Xaml Compiler Marker: 5:30:18 PM: 399 perfXC_CreatedTypeUniverse
         Xaml Compiler Marker: 5:30:18 PM: 401 perfXC_CreatingSchemaContext
   1:7>...\packages\microsoft.projectreunion.winui\0.8.0\buildTransitive\Microsoft.UI.Xaml.Markup.Compiler.interop.targets(465,9): Xaml Internal Error error WMC9999: Operation is not supported on this platform. [App1\App1\App1\App1.csproj]
            at System.Runtime.InteropServices.RuntimeEnvironment.GetRuntimeInterfaceAsObject(Guid clsid, Guid riid) in System.Runtime.InteropServices.dll:token 0x6000048+0x5
            at System.Reflection.Adds.MetadataDispenser.GetDispenserShim() in Microsoft.UI.Xaml.Markup.Compiler.dll:token 0x60012e9+0x1f
            at System.Reflection.Adds.MetadataDispenser.OpenFileAsFileMapping(String fileName) in Microsoft.UI.Xaml.Markup.Compiler.dll:token 0x60012eb+0x8
            at Microsoft.UI.Xaml.Markup.Compiler.Lmr.Loader.OpenMetadataFile(String filename) in Microsoft.UI.Xaml.Markup.Compiler.dll:token 0x6001c73+0x1
            at Microsoft.UI.Xaml.Markup.Compiler.Lmr.Loader.ReadAssemblyFromFile(String file) in Microsoft.UI.Xaml.Markup.Compiler.dll:token 0x6001c75+0x1
            at Microsoft.UI.Xaml.Markup.Compiler.Lmr.XamlTypeUniverse.LoadAssemblyFromFile(String path) in Microsoft.UI.Xaml.Markup.Compiler.dll:token 0x6001ffd+0xe
            at Microsoft.UI.Xaml.Markup.Compiler.CompileXamlInternal.TryLoadAssembly(String reference) in Microsoft.UI.Xaml.Markup.Compiler.dll:token 0x60013df+0x1b
            at Microsoft.UI.Xaml.Markup.Compiler.CompileXamlInternal.LoadAssembly(String reference) in Microsoft.UI.Xaml.Markup.Compiler.dll:token 0x60013de+0x1
            at Microsoft.UI.Xaml.Markup.Compiler.CompileXamlInternal.LoadAssemblyItem(String item, Boolean isSystemAssembly) in Microsoft.UI.Xaml.Markup.Compiler.dll:token 0x60013dd+0x9
            at Microsoft.UI.Xaml.Markup.Compiler.CompileXamlInternal.LoadAssemblyItems(List`1 referenceAssemblies, Boolean isSystemAssembly) in Microsoft.UI.Xaml.Markup.Compiler.dll:token 0x60013dc+0x1a
            at Microsoft.UI.Xaml.Markup.Compiler.CompileXamlInternal.LoadSchemaContext() in Microsoft.UI.Xaml.Markup.Compiler.dll:token 0x60013e7+0x17
            at Microsoft.UI.Xaml.Markup.Compiler.CompileXamlInternal.DoExecute() in Microsoft.UI.Xaml.Markup.Compiler.dll:token 0x60013d9+0x243
         Xaml Compiler Marker: 5:30:18 PM: 440 perfXC_EndPass1, App1
@ghost ghost added the needs-triage Issue needs to be triaged by the area owners label Jun 30, 2021
@StephenLPeters
Copy link
Contributor

@kant2002 duplicate of #5327?

@StephenLPeters StephenLPeters added duplicate This issue or pull request already exists needs-author-feedback Asked author to supply more information. and removed needs-triage Issue needs to be triaged by the area owners labels Jun 30, 2021
@kant2002
Copy link
Author

kant2002 commented Jul 1, 2021

Technically this is different error. But based on answer on sibling issue you will probably close as not supported. Any chance that I can hack around somehow myself? I look for source code of MSBuild task, but cannot find it. If this task open sourced I can hack around and find real problem. Please advice.

@ghost ghost added needs-triage Issue needs to be triaged by the area owners and removed needs-author-feedback Asked author to supply more information. labels Jul 1, 2021
@StephenLPeters StephenLPeters removed the needs-triage Issue needs to be triaged by the area owners label Jul 1, 2021
@StephenLPeters
Copy link
Contributor

Unfortunately I don't think so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants