-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Fix build errors in VS2019 and Build Tools v142 #449
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Verified this fixes compilation errors using VS2019 16.0.3 with build tools v142.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolved VS2019 build issue for me
Got it to build in VS2019 after following this and also installed the WinRT C++ library, but debugging throws memory exception, oddly. |
@rw3iss Where do I get WinRT C++ Library? I get error on TerminalCore:
|
nice work |
Do I still need to download VS2017 build tools? I'm still getting this error after applying your patch:
|
@AjawadMahmoud - I think you just need to change the build type from ARM64 to x64 or install the v142 build tools for ARM. |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
I managed to build it is VS2019 without changing target to v142 and without any code change. Followed this to install WinRT and then right-clicked on solution -> install missing feature. |
Is this supposed to be done? on VS17 it seemed to work fine without the include. @ ankitbko seems to be suggesting it can be done without changes as well. |
I was wrong about this, the VSIX does have some natvis defs in it, but it doesn't have the build rules anymore. |
@philselmer, hmm.. I tried many scenarios but was always ended up with some errors. |
Is this really deprecated? It is still present in official docs of WinRT. Nuget Package description mentions that MSBuild support is removed from vsix but I am not sure if there are other dependencies required by the project that is included in this visx. |
Ahhh okay I see what they've done. I'm dealing with outdated information from the last time we met with them. I see now that the VSIX does have some natvis stuff to make debugging easier. When we were last working with them, we were helping get the build rules into nuget, but I didn't realize they kept the vsix. That's my bad. |
Without this, building in VS2019 results in multiple function is not a member of std errors. This fixes that. 😃
EDIT: Important to mention I'm using VS2019 16.0.3 and build tools v. 142.