Terminal: Failed to build latest upstream

Created on 22 May 2019  路  5Comments  路  Source: microsoft/terminal

Environment

Windows build number: Microsoft Windows [Version 10.0.18362.116]
Windows Terminal version (if applicable): 83b139596fdbf0073655efd086b25172d4e578b1 (Git)

Any other software?

Steps to reproduce

Pull the latest commit, and build with VS2017.

Expected behavior

It builds correctly.

Actual behavior

1 error while building:

Severity    Code    Description Project File    Line    Suppression State
Error   C2039   'LastTabClosed': is not a member of 'winrt::TerminalApp::App'   WindowsTerminal c:\users\soumil\documents\terminal\src\cascadia\windowsterminal\apphost.cpp 73  
Area-Build Issue-Question Product-Meta Resolution-Answered

All 5 comments

@soumil07 that's weird, it looks like something is missing from the c++/winrt-generated headers. would you mind trying a full clean build?

@Soumil07 Check the full build output for errors. My experience was that some of the UWP-related projects won't get built with VS2017 if you don't have every single dependency installed you'll get build errors exactly like the one described. In particular, if you're using the VS2017 IDE, look for little warning icons next to the various projects at the bottom of the solution tree about a failure to load the project.

Same happened, but it was due to not rebuilding all Terminal projects before WindowsTerminal, try rebuilding them one by one.

A fresh rebuild works, so I'll close this - but I'd like to know what caused the build errors on pulling latest and rebuilding. I pulled the repo, nuget restored it and built it. Did I miss a step?

Same error, clean & rebuild didn't help:

1>------ Build started: Project: WindowsTerminal, Configuration: Debug x64 ------
1>AppHost.cpp
1>f:\sources\windows-terminal\src\cascadia\windowsterminal\apphost.cpp(73): error C2039: 'LastTabClosed': is not a member of 'winrt::TerminalApp::App'
1>f:\sources\windows-terminal\src\cascadia\windowsterminal\x64\debug\generated files\winrt\impl\terminalapp.2.h(167): note: see declaration of 'winrt::TerminalApp::App'
1>Done building project "WindowsTerminal.vcxproj" -- FAILED.
2>------ Build started: Project: CascadiaPackage, Configuration: Debug x64 ------
2>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Microsoft\DesktopBridge\Microsoft.DesktopBridge.targets(199,5): error MSB4044: The "GenerateDesktopBridgeAppxManifest" task was not given a value for the required parameter "EntryPointExe".
2>Done building project "CascadiaPackage.wapproj" -- FAILED.
Was this page helpful?
0 / 5 - 0 ratings

Related issues

TayYuanGeng picture TayYuanGeng  路  3Comments

mrmlnc picture mrmlnc  路  3Comments

wkbrd picture wkbrd  路  3Comments

ghost picture ghost  路  3Comments

Wid-Mimosa picture Wid-Mimosa  路  3Comments