WinUI fails to compile on VS2019-16.4.0
See original GitHub issueWinUI fails to compile on VS2019-16.4.0 (Preview 5.0)
Steps to reproduce the bug
Steps to reproduce the behavior:
- Install VS2019 Preview from https://visualstudio.microsoft.com/vs/preview/
- Build the solution with following configuration - x64, Debug
Windows 10 version | Saw the problem? |
---|---|
May 2019 Update (18362) | Yes |
Device form factor | Saw the problem? |
---|---|
Desktop | Yes |
Error
>C:\Users\labuser\Documents\Microsoft\microsoft-ui-xaml\dev\inc\tracker_ref.h(366,79): error C3861: 'SharedHelpers': identifier not found (compiling source file C:\Users\labuser\Documents\Microsoft\microsoft-ui-xaml\dev\TestHooks\MUXControlsTestHooksLoggingMessageEventArgs.cpp)
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Compile-Time Error When Navigating Between Pages C++ ...
In the idl file you need to change Windows.UI.Xaml.Controls.Page to Microsoft.UI.Xaml.Controls.Page. The tooling is a little under cooked.
Read more >Azure DevOps Build WinUI App Fails: Missing dll Microsoft. ...
So we fail on the "Publish Build" task (second from the bottom) with the error message: ... C:\Users\VssAdministrator\.nuget\packages\microsoft.
Read more >Create your first WinUI 3 (Windows App SDK) project
In this topic we'll see how to use Visual Studio to create a new project for a C# .NET or C++ app that...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Ok. I properly merged from master. Manually clear BuildOutput folder and everything compiles now.
I guess
#error /GR implies _HAS_STATIC_RTTI.
was side-effect from other build errorsIt works in the release version, but not in at least the past 3 Visual Studio 2019 previews