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.

WinUI fails to compile on VS2019-16.4.0

See original GitHub issue

WinUI fails to compile on VS2019-16.4.0 (Preview 5.0)

Steps to reproduce the bug

Steps to reproduce the behavior:

  1. Install VS2019 Preview from https://visualstudio.microsoft.com/vs/preview/
  2. 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:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
ad1Dimacommented, Dec 18, 2019

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 errors

1reaction
mdtaukcommented, Nov 21, 2019

@mayankkrjain do you also hit this problem with the release version of VS 2019? Or is this issue specific to the Preview 5 version?

I am only running the preview version of VS 2019, with VS 2017. I will try in the release version.

It works in the release version, but not in at least the past 3 Visual Studio 2019 previews

Read more comments on GitHub >

github_iconTop 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 >

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