Failed to build latest upstream #1262

Closed
opened 2026-01-30 22:20:31 +00:00 by claunia · 5 comments
Owner

Originally created by @Stitch07 on GitHub (May 22, 2019).

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	
Originally created by @Stitch07 on GitHub (May 22, 2019). <!-- This bug tracker is monitored by Windows Terminal development team and other technical folks. **Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**. Instead, send dumps/traces to secure@microsoft.com, referencing this GitHub issue. Please use this form and describe your issue, concisely but precisely, with as much detail as possible. --> # Environment ```none 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. <!-- A description of how to trigger this bug. --> # Expected behavior It builds correctly. <!-- A description of what you're expecting, possibly containing screenshots or reference material. --> # 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 ``` <!-- What's actually happening? -->
claunia added the Issue-QuestionResolution-AnsweredProduct-MetaArea-Build labels 2026-01-30 22:20:31 +00:00
Author
Owner

@DHowett-MSFT commented on GitHub (May 22, 2019):

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

@DHowett-MSFT commented on GitHub (May 22, 2019): @soumil07 that's weird, it looks like something is missing from the c++/winrt-generated headers. would you mind trying a full clean build?
Author
Owner

@binarycrusader commented on GitHub (May 23, 2019):

@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.

@binarycrusader commented on GitHub (May 23, 2019): @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.
Author
Owner

@vhanla commented on GitHub (May 23, 2019):

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

@vhanla commented on GitHub (May 23, 2019): Same happened, but it was due to not rebuilding all Terminal projects before WindowsTerminal, try rebuilding them one by one.
Author
Owner

@Stitch07 commented on GitHub (May 23, 2019):

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?

@Stitch07 commented on GitHub (May 23, 2019): 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?
Author
Owner

@sryze commented on GitHub (May 26, 2019):

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.
@sryze commented on GitHub (May 26, 2019): 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. ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#1262