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

[0.8 Preview] Builds failing with latest VS 16.10 #916

Closed
andrewleader opened this issue Jun 8, 2021 · 6 comments
Closed

[0.8 Preview] Builds failing with latest VS 16.10 #916

andrewleader opened this issue Jun 8, 2021 · 6 comments
Assignees
Labels
area-Infrastructure Build, test, source layout, package construction (TODO: move to Deployment, DeveloperTools) bug Something isn't working

Comments

@andrewleader
Copy link
Contributor

andrewleader commented Jun 8, 2021

We've discovered an incompatibility with 0.8 Preview and the latest VS 16.10 release (which is no longer Preview), which results in a build-time error when trying to build some WinUI 3 projects.

This seems to only affect 0.8 Preview as far as we're aware.

We've identified one or two issues and are working on a fix, if you run into this, please share your error!

@andrewleader andrewleader added bug Something isn't working area-Infrastructure Build, test, source layout, package construction (TODO: move to Deployment, DeveloperTools) labels Jun 8, 2021
@andrewleader andrewleader pinned this issue Jun 8, 2021
@andrewleader andrewleader unpinned this issue Jun 10, 2021
@andrewleader andrewleader changed the title Builds failing with latest VS 16.10 [0.8 Preview] Builds failing with latest VS 16.10 Jun 10, 2021
@andrewleader andrewleader self-assigned this Jun 10, 2021
@jmiddour
Copy link

I don't know if this is related or not, but 16.10/16.11 preview throws some xaml compilation errors I haven't been able to identify causes for... I originally opened an issue on winui repo looking for help tracking it down (I'm not 100% convinced it's not something stupid I'm doing, but I haven't figured out a cause yet), but this may be a better place for it: microsoft/microsoft-ui-xaml#5143 (comment)

@andrewleader
Copy link
Contributor Author

Hey @jmiddour, any chance you could try out the new 0.8 RC and see if your issue still repros? The updated NuGet packages are attached to the bottom of the GitHub Release here: /~https://github.com/microsoft/ProjectReunion/releases/tag/v0.8.0-rc

@jmiddour
Copy link

@andrewleader I confirmed the issue still repros. Here's the stacktrace after doing a build -v:d:

       Using "CompileXaml" task from assembly "C:\Users\userid\.nuget\packages\microsoft.projectreunion.winui\0.8.0-rc\buildTransitive\..\tools\Microsoft.UI.Xaml.Markup.Compiler.dll".
       Task "CompileXaml"
         Xaml Compiler Marker: 5:08:56 PM: 522 perfXC_StartPass1, organizationWinuiApplication
         Xaml Compiler Marker: 5:08:56 PM: 540 perfXC_FingerprintCheck, Reference Assemblies Fingerprint Changed
         Xaml Compiler Marker: 5:08:56 PM: 541 perfXC_CreatingTypeUniverse
         Xaml Compiler Marker: 5:08:56 PM: 542 perfXC_CreatedTypeUniverse
         Xaml Compiler Marker: 5:08:56 PM: 544 perfXC_CreatingSchemaContext
   1:7>C:\Users\userid\.nuget\packages\microsoft.projectreunion.winui\0.8.0-rc\buildTransitive\Microsoft.UI.Xaml.Markup.Compiler.interop.targets(465,9): Xaml Internal Error error WMC9999: Operation is not supported on this platform. [C:\Repos\organization.WinNativeApp\src\working\templates\organizationWinuiApplication\organizationWinuiApplication\organizationWinuiApplication.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:08:56 PM: 568 perfXC_EndPass1, organizationWinuiApplication

@andrewleader
Copy link
Contributor Author

@jmiddour thanks for confirming it still hits on 0.8 RC. I think the bug that you filed is the best place to continue this, I pinged a couple folks.

@kant2002
Copy link

This is still an issue with 0.8 stable.
I just do dotnet build on the default sample. Actual building inside the VS is working. I have hopes start poking with NativeAOT and WinUI, but that's need working CLI build first.

@andrewleader
Copy link
Contributor Author

Closing this old issue. If anyone still has remaining issues, please open or re-ping a different thread.

dotnet build is not supported yet as we still have msbuild dependencies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Infrastructure Build, test, source layout, package construction (TODO: move to Deployment, DeveloperTools) bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants