Terminal: Cannot open include file: 'winrt/Microsoft.Terminal.TerminalControl.h': build failed

Created on 7 May 2019  路  6Comments  路  Source: microsoft/terminal

38>e:softwaremicrosoftterminalterminalsrccascadiawindowsterminalapphost.h(6): fatal error C1083: Cannot open include file: 'winrt/Microsoft.Terminal.TerminalControl.h': No such file or directory
38>AppHost.cpp
38>e:softwaremicrosoftterminalterminalsrccascadiawindowsterminalapphost.h(6): fatal error C1083: Cannot open include file: 'winrt/Microsoft.Terminal.TerminalControl.h': No such file or directory
38>IslandWindow.cpp
38>e:softwaremicrosoftterminalterminalsrccascadiawindowsterminalislandwindow.h(6): fatal error C1083: Cannot open include file: 'winrt/Microsoft.Terminal.TerminalControl.h': No such file or directory
38>NonClientIslandWindow.cpp
38>e:softwaremicrosoftterminalterminalsrccascadiawindowsterminalislandwindow.h(6): fatal error C1083: Cannot open include file: 'winrt/Microsoft.Terminal.TerminalControl.h': No such file or directory

Issue-Question

Most helpful comment

U need to install the binary of winrt which can be found here:
https://marketplace.visualstudio.com/items?itemName=CppWinRTTeam.cppwinrt101804264

The nuget extension didn't work for me

All 6 comments

Seems to me the TerminalControl project didn't build. Do you get any errors if you try just building that project?

U need to install the binary of winrt which can be found here:
https://marketplace.visualstudio.com/items?itemName=CppWinRTTeam.cppwinrt101804264

The nuget extension didn't work for me

U need to install the binary of winrt which can be found here:
https://marketplace.visualstudio.com/items?itemName=CppWinRTTeam.cppwinrt101804264

The nuget extension didn't work for me

dude I tried as you said but nothing special happens to me. I still can't find that stupid header LOL

U need to install the binary of winrt which can be found here:
https://marketplace.visualstudio.com/items?itemName=CppWinRTTeam.cppwinrt101804264
The nuget extension didn't work for me

Thanks, dude! It works for me!

For me , it turns out even though I had UWP Development feature checked in VS2017, the default didn't include C++ files for it. Once I modified the setup and re-opened the solution, it built like a charm.

U need to install the binary of winrt which can be found here:
https://marketplace.visualstudio.com/items?itemName=CppWinRTTeam.cppwinrt101804264

The nuget extension didn't work for me

it's works for me

Was this page helpful?
0 / 5 - 0 ratings