LNK2019, LNK2001, LNK1120, MSB4181 error when compiling #8562

Closed
opened 2026-01-31 01:32:30 +00:00 by claunia · 35 comments
Owner

Originally created by @Chips1234 on GitHub (May 25, 2020).

Environment

Windows build number: Microsoft Windows [Version 10.0.19631.1]
Windows Terminal version (if applicable): N/A

Any other software? Visual Studio 2019 Community Preview

Steps to reproduce

Just git clone it and compile it (F5)

Expected behaviour

It compiles and lauches application

Actual behaviour

A lot of bugs (that I haven't seen before in previous compiles, and no I have not changed anything)
Terminal VS Errors

Thank you!

Originally created by @Chips1234 on GitHub (May 25, 2020). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> <!-- 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. If this is an application crash, please also provide a Feedback Hub submission link so we can find your diagnostic data on the backend. Use the category "Apps > Windows Terminal (Preview)" and choose "Share My Feedback" after submission to get the link. 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.19631.1] Windows Terminal version (if applicable): N/A Any other software? Visual Studio 2019 Community Preview ``` # Steps to reproduce Just `git clone` it and compile it (<kbd>F5</kbd>) <!-- A description of how to trigger this bug. --> # Expected behaviour It compiles and lauches application <!-- A description of what you're expecting, possibly containing screenshots or reference material. --> # Actual behaviour A lot of bugs (that I haven't seen before in previous compiles, and no I have not changed anything) ![Terminal VS Errors](https://user-images.githubusercontent.com/47545798/82777997-d17e6200-9e04-11ea-9771-b91f7442b073.gif) Thank you! <!-- What's actually happening? -->
claunia added the Needs-TriageNeeds-Tag-FixNeeds-Attention labels 2026-01-31 01:32:30 +00:00
Author
Owner

@skyline75489 commented on GitHub (May 25, 2020):

I can barely seen any useful information in the gif. Maybe a screenshot with a better resolution?

Plus I'm not sure this project compiles with community version of VS. I personally have not tried it with community version.

@skyline75489 commented on GitHub (May 25, 2020): I can barely seen any useful information in the gif. Maybe a screenshot with a better resolution? Plus I'm not sure this project compiles with community version of VS. I personally have not tried it with community version.
Author
Owner

@Chips1234 commented on GitHub (May 25, 2020):

Alright, I’ll upload a screenshot with a better resolution. It’s only because there so many errors, I can’t fit it all in one picture.

@Chips1234 commented on GitHub (May 25, 2020): Alright, I’ll upload a screenshot with a better resolution. It’s only because there so many errors, I can’t fit it all in one picture.
Author
Owner

@Chips1234 commented on GitHub (May 25, 2020):

Plus I'm not sure this project compiles with the community version of VS. I personally have not tried it with the community version.

Yes, the community version compiles fine.

@Chips1234 commented on GitHub (May 25, 2020): > Plus I'm not sure this project compiles with the community version of VS. I personally have not tried it with the community version. Yes, the community version compiles fine.
Author
Owner

@Chips1234 commented on GitHub (May 25, 2020):

Here are the screenshots:
VS Errors Terminal Compile 1
VS Errors Terminal Compile 2
VS Errors Terminal Compile 3

@Chips1234 commented on GitHub (May 25, 2020): Here are the screenshots: ![VS Errors Terminal Compile 1](https://user-images.githubusercontent.com/47545798/82833201-3b812080-9e72-11ea-9fb4-6f44bd19697d.jpg) ![VS Errors Terminal Compile 2](https://user-images.githubusercontent.com/47545798/82833203-3cb24d80-9e72-11ea-9e38-011fbde5c1c3.jpg) ![VS Errors Terminal Compile 3](https://user-images.githubusercontent.com/47545798/82833204-3cb24d80-9e72-11ea-8bf9-8fc98934d1e5.jpg)
Author
Owner

@DHowett commented on GitHub (May 25, 2020):

These look like the error messages you would get if you didn’t have a Windows SDK installed. Can you check for the presence of libraries in C:\Program Files (x86)\Windows Kits\10\Lib\10.0.81362.0?

@DHowett commented on GitHub (May 25, 2020): These look like the error messages you would get if you didn’t have a Windows SDK installed. Can you check for the presence of libraries in `C:\Program Files (x86)\Windows Kits\10\Lib\10.0.81362.0`?
Author
Owner

@Chips1234 commented on GitHub (May 25, 2020):

You’re right! I recently reinstalled VS and forgot about it. Thanks a bunch!

@Chips1234 commented on GitHub (May 25, 2020): You’re right! I recently reinstalled VS and forgot about it. Thanks a bunch!
Author
Owner

@DHowett commented on GitHub (May 26, 2020):

Happy to help :)

@DHowett commented on GitHub (May 26, 2020): Happy to help :)
Author
Owner

@Chips1234 commented on GitHub (May 26, 2020):

Okay, I installed Windows SDK 10.0.18362 but the errors still persists...

@Chips1234 commented on GitHub (May 26, 2020): Okay, I installed Windows SDK 10.0.18362 but the errors still persists...
Author
Owner

@Chips1234 commented on GitHub (May 30, 2020):

@DHowett can you reopen this?

@Chips1234 commented on GitHub (May 30, 2020): @DHowett can you reopen this?
Author
Owner

@Chips1234 commented on GitHub (May 31, 2020):

Severity	Code	Description	Project	File	Line	Suppression State
Error	LNK2001	unresolved external symbol WinMain	TerminalAzBridge	D:\Repos\terminal\src\cascadia\TerminalAzBridge\MSVCRT.lib(exe_winmain.obj)	1	
Error	LNK1120	1 unresolved externals	TerminalAzBridge	D:\Repos\terminal\x64\Release\TerminalAzBridge\TerminalAzBridge.exe	1	
Error	LNK2001	unresolved external symbol __imp_MessageBoxW	WindowsTerminal	D:\Repos\terminal\src\cascadia\WindowsTerminal\main.obj	1	
Error	LNK2001	unresolved external symbol __imp_EnableMouseInPointer	WindowsTerminal	D:\Repos\terminal\src\cascadia\WindowsTerminal\main.obj	1	
Error	LNK2001	unresolved external symbol __imp_GetMessageW	WindowsTerminal	D:\Repos\terminal\src\cascadia\WindowsTerminal\main.obj	1	
Error	LNK2001	unresolved external symbol __imp_TranslateMessage	WindowsTerminal	D:\Repos\terminal\src\cascadia\WindowsTerminal\main.obj	1	
Error	LNK2001	unresolved external symbol __imp_DispatchMessageW	WindowsTerminal	D:\Repos\terminal\src\cascadia\WindowsTerminal\main.obj	1	
Error	LNK2001	unresolved external symbol __imp_MonitorFromRect	WindowsTerminal	D:\Repos\terminal\src\cascadia\WindowsTerminal\AppHost.obj	1	
Error	LNK2001	unresolved external symbol __imp_SetWindowPos	WindowsTerminal	D:\Repos\terminal\src\cascadia\WindowsTerminal\AppHost.obj	1	
Error	LNK2001	unresolved external symbol __imp_GetDpiForWindow	WindowsTerminal	D:\Repos\terminal\src\cascadia\WindowsTerminal\AppHost.obj	1	
Error	LNK2001	unresolved external symbol __imp_PostMessageW	WindowsTerminal	D:\Repos\terminal\src\cascadia\WindowsTerminal\AppHost.obj	1	
Error	LNK2001	unresolved external symbol __imp_LoadCursorW	WindowsTerminal	D:\Repos\terminal\src\cascadia\WindowsTerminal\IslandWindow.obj	1	
Error	LNK2001	unresolved external symbol __imp_LoadIconW	WindowsTerminal	D:\Repos\terminal\src\cascadia\WindowsTerminal\IslandWindow.obj	1	
Error	LNK2001	unresolved external symbol __imp_RegisterClassW	WindowsTerminal	D:\Repos\terminal\src\cascadia\WindowsTerminal\IslandWindow.obj	1	
Error	LNK2001	unresolved external symbol __imp_CreateWindowExW	WindowsTerminal	D:\Repos\terminal\src\cascadia\WindowsTerminal\IslandWindow.obj	1	
Error	LNK2001	unresolved external symbol __imp_PostQuitMessage	WindowsTerminal	D:\Repos\terminal\src\cascadia\WindowsTerminal\IslandWindow.obj	1	
Error	LNK2001	unresolved external symbol __imp_ShowWindow	WindowsTerminal	D:\Repos\terminal\src\cascadia\WindowsTerminal\IslandWindow.obj	1	
Error	LNK2001	unresolved external symbol __imp_UpdateWindow	WindowsTerminal	D:\Repos\terminal\src\cascadia\WindowsTerminal\IslandWindow.obj	1	
Error	LNK2001	unresolved external symbol __imp_SetFocus	WindowsTerminal	D:\Repos\terminal\src\cascadia\WindowsTerminal\IslandWindow.obj	1	
Error	LNK2001	unresolved external symbol __imp_GetWindowLongW	WindowsTerminal	D:\Repos\terminal\src\cascadia\WindowsTerminal\IslandWindow.obj	1	
Error	LNK2001	unresolved external symbol __imp_AdjustWindowRectExForDpi	WindowsTerminal	D:\Repos\terminal\src\cascadia\WindowsTerminal\IslandWindow.obj	1	
Error	LNK2001	unresolved external symbol __imp_InvalidateRect	WindowsTerminal	D:\Repos\terminal\src\cascadia\WindowsTerminal\IslandWindow.obj	1	
Error	LNK2001	unresolved external symbol __imp_SetWindowLongW	WindowsTerminal	D:\Repos\terminal\src\cascadia\WindowsTerminal\IslandWindow.obj	1	
Error	LNK2001	unresolved external symbol __imp_MonitorFromWindow	WindowsTerminal	D:\Repos\terminal\src\cascadia\WindowsTerminal\IslandWindow.obj	1	
Error	LNK2001	unresolved external symbol __imp_SetWindowLongPtrW	WindowsTerminal	D:\Repos\terminal\src\cascadia\WindowsTerminal\IslandWindow.obj	1	
Error	LNK2001	unresolved external symbol __imp_EnableNonClientDpiScaling	WindowsTerminal	D:\Repos\terminal\src\cascadia\WindowsTerminal\IslandWindow.obj	1	
Error	LNK2001	unresolved external symbol __imp_DefWindowProcW	WindowsTerminal	D:\Repos\terminal\src\cascadia\WindowsTerminal\IslandWindow.obj	1	
Error	LNK2001	unresolved external symbol __imp_GetClientRect	WindowsTerminal	D:\Repos\terminal\src\cascadia\WindowsTerminal\IslandWindow.obj	1	
Error	LNK2001	unresolved external symbol __imp_GetWindowRect	WindowsTerminal	D:\Repos\terminal\src\cascadia\WindowsTerminal\IslandWindow.obj	1	
Error	LNK2001	unresolved external symbol __imp_SetWindowTextW	WindowsTerminal	D:\Repos\terminal\src\cascadia\WindowsTerminal\IslandWindow.obj	1	
Error	LNK2001	unresolved external symbol __imp_GetWindow	WindowsTerminal	D:\Repos\terminal\src\cascadia\WindowsTerminal\IslandWindow.obj	1	
Error	LNK2001	unresolved external symbol __imp_GetWindowLongPtrW	WindowsTerminal	D:\Repos\terminal\src\cascadia\WindowsTerminal\IslandWindow.obj	1	
Error	LNK2001	unresolved external symbol __imp_DestroyWindow	WindowsTerminal	D:\Repos\terminal\src\cascadia\WindowsTerminal\IslandWindow.obj	1	
Error	LNK2001	unresolved external symbol __imp_RegisterClassExW	WindowsTerminal	D:\Repos\terminal\src\cascadia\WindowsTerminal\NonClientIslandWindow.obj	1	
Error	LNK2001	unresolved external symbol __imp_ClientToScreen	WindowsTerminal	D:\Repos\terminal\src\cascadia\WindowsTerminal\NonClientIslandWindow.obj	1	
Error	LNK2001	unresolved external symbol __imp_SendMessageW	WindowsTerminal	D:\Repos\terminal\src\cascadia\WindowsTerminal\NonClientIslandWindow.obj	1	
Error	LNK2001	unresolved external symbol __imp_SetLayeredWindowAttributes	WindowsTerminal	D:\Repos\terminal\src\cascadia\WindowsTerminal\NonClientIslandWindow.obj	1	
Error	LNK2001	unresolved external symbol __imp_GetSystemMetricsForDpi	WindowsTerminal	D:\Repos\terminal\src\cascadia\WindowsTerminal\NonClientIslandWindow.obj	1	
Error	LNK2001	unresolved external symbol __imp_SHAppBarMessage	WindowsTerminal	D:\Repos\terminal\src\cascadia\WindowsTerminal\NonClientIslandWindow.obj	1	
Error	LNK2001	unresolved external symbol __imp_GetMessagePos	WindowsTerminal	D:\Repos\terminal\src\cascadia\WindowsTerminal\NonClientIslandWindow.obj	1	
Error	LNK2001	unresolved external symbol __imp_SetCursor	WindowsTerminal	D:\Repos\terminal\src\cascadia\WindowsTerminal\NonClientIslandWindow.obj	1	
Error	LNK2001	unresolved external symbol __imp_EndPaint	WindowsTerminal	D:\Repos\terminal\src\cascadia\WindowsTerminal\NonClientIslandWindow.obj	1	
Error	LNK2001	unresolved external symbol __imp_BeginPaint	WindowsTerminal	D:\Repos\terminal\src\cascadia\WindowsTerminal\NonClientIslandWindow.obj	1	
Error	LNK2001	unresolved external symbol __imp_FillRect	WindowsTerminal	D:\Repos\terminal\src\cascadia\WindowsTerminal\NonClientIslandWindow.obj	1	
Error	LNK2001	unresolved external symbol __imp_IsWindow	WindowsTerminal	D:\Repos\terminal\src\cascadia\WindowsTerminal\ConTypes.lib(WindowUiaProviderBase.obj)	1	
Error	LNK1120	43 unresolved externals	WindowsTerminal	D:\Repos\terminal\x64\Release\WindowsTerminal\WindowsTerminal.exe	1	
Warning		Packaging multiple UWP applications can cause some files to be overwritten in the final package.	CascadiaPackage	C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\MSBuild\Microsoft\DesktopBridge\Microsoft.DesktopBridge.targets	191	
Error	MSB4181	The "MSBuild" task returned false but did not log an error.	CascadiaPackage	C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\MSBuild\Microsoft\DesktopBridge\Microsoft.DesktopBridge.targets	446	

@Chips1234 commented on GitHub (May 31, 2020): ``` Severity Code Description Project File Line Suppression State Error LNK2001 unresolved external symbol WinMain TerminalAzBridge D:\Repos\terminal\src\cascadia\TerminalAzBridge\MSVCRT.lib(exe_winmain.obj) 1 Error LNK1120 1 unresolved externals TerminalAzBridge D:\Repos\terminal\x64\Release\TerminalAzBridge\TerminalAzBridge.exe 1 Error LNK2001 unresolved external symbol __imp_MessageBoxW WindowsTerminal D:\Repos\terminal\src\cascadia\WindowsTerminal\main.obj 1 Error LNK2001 unresolved external symbol __imp_EnableMouseInPointer WindowsTerminal D:\Repos\terminal\src\cascadia\WindowsTerminal\main.obj 1 Error LNK2001 unresolved external symbol __imp_GetMessageW WindowsTerminal D:\Repos\terminal\src\cascadia\WindowsTerminal\main.obj 1 Error LNK2001 unresolved external symbol __imp_TranslateMessage WindowsTerminal D:\Repos\terminal\src\cascadia\WindowsTerminal\main.obj 1 Error LNK2001 unresolved external symbol __imp_DispatchMessageW WindowsTerminal D:\Repos\terminal\src\cascadia\WindowsTerminal\main.obj 1 Error LNK2001 unresolved external symbol __imp_MonitorFromRect WindowsTerminal D:\Repos\terminal\src\cascadia\WindowsTerminal\AppHost.obj 1 Error LNK2001 unresolved external symbol __imp_SetWindowPos WindowsTerminal D:\Repos\terminal\src\cascadia\WindowsTerminal\AppHost.obj 1 Error LNK2001 unresolved external symbol __imp_GetDpiForWindow WindowsTerminal D:\Repos\terminal\src\cascadia\WindowsTerminal\AppHost.obj 1 Error LNK2001 unresolved external symbol __imp_PostMessageW WindowsTerminal D:\Repos\terminal\src\cascadia\WindowsTerminal\AppHost.obj 1 Error LNK2001 unresolved external symbol __imp_LoadCursorW WindowsTerminal D:\Repos\terminal\src\cascadia\WindowsTerminal\IslandWindow.obj 1 Error LNK2001 unresolved external symbol __imp_LoadIconW WindowsTerminal D:\Repos\terminal\src\cascadia\WindowsTerminal\IslandWindow.obj 1 Error LNK2001 unresolved external symbol __imp_RegisterClassW WindowsTerminal D:\Repos\terminal\src\cascadia\WindowsTerminal\IslandWindow.obj 1 Error LNK2001 unresolved external symbol __imp_CreateWindowExW WindowsTerminal D:\Repos\terminal\src\cascadia\WindowsTerminal\IslandWindow.obj 1 Error LNK2001 unresolved external symbol __imp_PostQuitMessage WindowsTerminal D:\Repos\terminal\src\cascadia\WindowsTerminal\IslandWindow.obj 1 Error LNK2001 unresolved external symbol __imp_ShowWindow WindowsTerminal D:\Repos\terminal\src\cascadia\WindowsTerminal\IslandWindow.obj 1 Error LNK2001 unresolved external symbol __imp_UpdateWindow WindowsTerminal D:\Repos\terminal\src\cascadia\WindowsTerminal\IslandWindow.obj 1 Error LNK2001 unresolved external symbol __imp_SetFocus WindowsTerminal D:\Repos\terminal\src\cascadia\WindowsTerminal\IslandWindow.obj 1 Error LNK2001 unresolved external symbol __imp_GetWindowLongW WindowsTerminal D:\Repos\terminal\src\cascadia\WindowsTerminal\IslandWindow.obj 1 Error LNK2001 unresolved external symbol __imp_AdjustWindowRectExForDpi WindowsTerminal D:\Repos\terminal\src\cascadia\WindowsTerminal\IslandWindow.obj 1 Error LNK2001 unresolved external symbol __imp_InvalidateRect WindowsTerminal D:\Repos\terminal\src\cascadia\WindowsTerminal\IslandWindow.obj 1 Error LNK2001 unresolved external symbol __imp_SetWindowLongW WindowsTerminal D:\Repos\terminal\src\cascadia\WindowsTerminal\IslandWindow.obj 1 Error LNK2001 unresolved external symbol __imp_MonitorFromWindow WindowsTerminal D:\Repos\terminal\src\cascadia\WindowsTerminal\IslandWindow.obj 1 Error LNK2001 unresolved external symbol __imp_SetWindowLongPtrW WindowsTerminal D:\Repos\terminal\src\cascadia\WindowsTerminal\IslandWindow.obj 1 Error LNK2001 unresolved external symbol __imp_EnableNonClientDpiScaling WindowsTerminal D:\Repos\terminal\src\cascadia\WindowsTerminal\IslandWindow.obj 1 Error LNK2001 unresolved external symbol __imp_DefWindowProcW WindowsTerminal D:\Repos\terminal\src\cascadia\WindowsTerminal\IslandWindow.obj 1 Error LNK2001 unresolved external symbol __imp_GetClientRect WindowsTerminal D:\Repos\terminal\src\cascadia\WindowsTerminal\IslandWindow.obj 1 Error LNK2001 unresolved external symbol __imp_GetWindowRect WindowsTerminal D:\Repos\terminal\src\cascadia\WindowsTerminal\IslandWindow.obj 1 Error LNK2001 unresolved external symbol __imp_SetWindowTextW WindowsTerminal D:\Repos\terminal\src\cascadia\WindowsTerminal\IslandWindow.obj 1 Error LNK2001 unresolved external symbol __imp_GetWindow WindowsTerminal D:\Repos\terminal\src\cascadia\WindowsTerminal\IslandWindow.obj 1 Error LNK2001 unresolved external symbol __imp_GetWindowLongPtrW WindowsTerminal D:\Repos\terminal\src\cascadia\WindowsTerminal\IslandWindow.obj 1 Error LNK2001 unresolved external symbol __imp_DestroyWindow WindowsTerminal D:\Repos\terminal\src\cascadia\WindowsTerminal\IslandWindow.obj 1 Error LNK2001 unresolved external symbol __imp_RegisterClassExW WindowsTerminal D:\Repos\terminal\src\cascadia\WindowsTerminal\NonClientIslandWindow.obj 1 Error LNK2001 unresolved external symbol __imp_ClientToScreen WindowsTerminal D:\Repos\terminal\src\cascadia\WindowsTerminal\NonClientIslandWindow.obj 1 Error LNK2001 unresolved external symbol __imp_SendMessageW WindowsTerminal D:\Repos\terminal\src\cascadia\WindowsTerminal\NonClientIslandWindow.obj 1 Error LNK2001 unresolved external symbol __imp_SetLayeredWindowAttributes WindowsTerminal D:\Repos\terminal\src\cascadia\WindowsTerminal\NonClientIslandWindow.obj 1 Error LNK2001 unresolved external symbol __imp_GetSystemMetricsForDpi WindowsTerminal D:\Repos\terminal\src\cascadia\WindowsTerminal\NonClientIslandWindow.obj 1 Error LNK2001 unresolved external symbol __imp_SHAppBarMessage WindowsTerminal D:\Repos\terminal\src\cascadia\WindowsTerminal\NonClientIslandWindow.obj 1 Error LNK2001 unresolved external symbol __imp_GetMessagePos WindowsTerminal D:\Repos\terminal\src\cascadia\WindowsTerminal\NonClientIslandWindow.obj 1 Error LNK2001 unresolved external symbol __imp_SetCursor WindowsTerminal D:\Repos\terminal\src\cascadia\WindowsTerminal\NonClientIslandWindow.obj 1 Error LNK2001 unresolved external symbol __imp_EndPaint WindowsTerminal D:\Repos\terminal\src\cascadia\WindowsTerminal\NonClientIslandWindow.obj 1 Error LNK2001 unresolved external symbol __imp_BeginPaint WindowsTerminal D:\Repos\terminal\src\cascadia\WindowsTerminal\NonClientIslandWindow.obj 1 Error LNK2001 unresolved external symbol __imp_FillRect WindowsTerminal D:\Repos\terminal\src\cascadia\WindowsTerminal\NonClientIslandWindow.obj 1 Error LNK2001 unresolved external symbol __imp_IsWindow WindowsTerminal D:\Repos\terminal\src\cascadia\WindowsTerminal\ConTypes.lib(WindowUiaProviderBase.obj) 1 Error LNK1120 43 unresolved externals WindowsTerminal D:\Repos\terminal\x64\Release\WindowsTerminal\WindowsTerminal.exe 1 Warning Packaging multiple UWP applications can cause some files to be overwritten in the final package. CascadiaPackage C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\MSBuild\Microsoft\DesktopBridge\Microsoft.DesktopBridge.targets 191 Error MSB4181 The "MSBuild" task returned false but did not log an error. CascadiaPackage C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\MSBuild\Microsoft\DesktopBridge\Microsoft.DesktopBridge.targets 446 ```
Author
Owner

@zadjii-msft commented on GitHub (Jun 1, 2020):

Huh, that's really peculiar. Almost seems like user32.lib isn't getting linked at all. If you enable more verbose logging from msbuild, is there any more useful output?

@zadjii-msft commented on GitHub (Jun 1, 2020): Huh, that's really peculiar. Almost seems like `user32.lib` isn't getting linked at all. If you enable more verbose logging from msbuild, is there any more useful output?
Author
Owner

@Chips1234 commented on GitHub (Jun 1, 2020):

What project do you want information from?

@Chips1234 commented on GitHub (Jun 1, 2020): What project do you want information from?
Author
Owner

@zadjii-msft commented on GitHub (Jun 1, 2020):

Ideally the WindowsTerminal one, since that's the one that seems to be having all the issues.

@zadjii-msft commented on GitHub (Jun 1, 2020): Ideally the `WindowsTerminal` one, since that's the one that seems to be having all the issues.
Author
Owner

@Chips1234 commented on GitHub (Jun 1, 2020):

Hmm, I'm not seeing errors logged into MSBuild

@Chips1234 commented on GitHub (Jun 1, 2020): Hmm, I'm not seeing errors logged into MSBuild
Author
Owner

@Chips1234 commented on GitHub (Jun 10, 2020):

Reopen, please?

@Chips1234 commented on GitHub (Jun 10, 2020): Reopen, please?
Author
Owner

@zadjii-msft commented on GitHub (Jun 10, 2020):

You're going to have to give us more information for us to reopen this - right now I'm not sure there's anything else I can go off of from just the info in this thread currently

@zadjii-msft commented on GitHub (Jun 10, 2020): You're going to have to give us more information for us to reopen this - right now I'm not sure there's anything else I can go off of from just the info in this thread currently
Author
Owner

@Chips1234 commented on GitHub (Jun 10, 2020):

What other info do you need?

@Chips1234 commented on GitHub (Jun 10, 2020): What other info do you need?
Author
Owner

@DHowett commented on GitHub (Jun 10, 2020):

Can you run a build from the commandline ("VS 2019 Developer Command Prompt") with the following arguments?

msbuild OpenConsole.sln /p:Platform=x64 /p:Configuration=Debug /t:Terminal\WindowsTerminal /bl:chips.binlog

That will produce a binary log file, chips.binlog, that will record the entire build process. If you could share that with us, we'll be able to see what MSBuild chose to do and why it got the wrong Windows SDK. 😄

@DHowett commented on GitHub (Jun 10, 2020): Can you run a build from the commandline ("VS 2019 Developer Command Prompt") with the following arguments? ``` msbuild OpenConsole.sln /p:Platform=x64 /p:Configuration=Debug /t:Terminal\WindowsTerminal /bl:chips.binlog ``` That will produce a binary log file, `chips.binlog`, that will record the entire build process. If you could share that with us, we'll be able to see what MSBuild chose to do and why it got the wrong Windows SDK. :smile:
Author
Owner

@Chips1234 commented on GitHub (Jun 10, 2020):

Hmm, strange, I tried to do that but got:

MSBUILD : error MSB1009: Project file does not exist.
Switch: OpenConsole.sln
@Chips1234 commented on GitHub (Jun 10, 2020): Hmm, strange, I tried to do that but got: ``` MSBUILD : error MSB1009: Project file does not exist. Switch: OpenConsole.sln ```
Author
Owner

@DHowett commented on GitHub (Jun 10, 2020):

Even running it inside the Terminal repository you have checked out? That's quite unusual...

@DHowett commented on GitHub (Jun 10, 2020): Even running it inside the Terminal repository you have checked out? That's quite unusual...
Author
Owner

@Chips1234 commented on GitHub (Jun 10, 2020):

Ah sorry, nvm. Building rn. It should be out soon.

@Chips1234 commented on GitHub (Jun 10, 2020): Ah sorry, nvm. Building rn. It should be out soon.
Author
Owner

@Chips1234 commented on GitHub (Jun 11, 2020):

How should I share it? Copy-paste (it's a large file) or upload via the cloud (Github does not support .binlog files)?

@Chips1234 commented on GitHub (Jun 11, 2020): How should I share it? Copy-paste (it's a large file) or upload via the cloud (Github does not support .binlog files)?
Author
Owner

@DHowett commented on GitHub (Jun 11, 2020):

If you're comfortable with e-mail, my Microsoft e-mail address is on my profile. 😄

@DHowett commented on GitHub (Jun 11, 2020): If you're comfortable with e-mail, my Microsoft e-mail address is on my profile. :smile:
Author
Owner

@Chips1234 commented on GitHub (Jun 11, 2020):

Alright.

@Chips1234 commented on GitHub (Jun 11, 2020): Alright.
Author
Owner

@DHowett commented on GitHub (Jun 11, 2020):

Wow, that was unexpected. This binlog has a totally different set of errors than the original issue here. It looks like the way I asked you to run it forced MSBuild to use the 32-bit build tools, which may not be able to compile our project correctly right now.

If it's not too much trouble, can you run it again using the "x64 Native Tools Command Prompt for VS 2019"? If you get "out of heap space" errors then, I'm not really sure how we should proceed.

@DHowett commented on GitHub (Jun 11, 2020): Wow, that was unexpected. This binlog has a totally different set of errors than the original issue here. It looks like the way I asked you to run it forced MSBuild to use the 32-bit build tools, which may not be able to compile our project correctly right now. If it's not too much trouble, can you run it again using the "x64 Native Tools Command Prompt for VS 2019"? If you get "out of heap space" errors _then_, I'm not really sure how we should proceed.
Author
Owner

@Chips1234 commented on GitHub (Jun 11, 2020):

Alright. I'll try it with that.

@Chips1234 commented on GitHub (Jun 11, 2020): Alright. I'll try it with that.
Author
Owner

@DHowett commented on GitHub (Jun 11, 2020):

This is crazy. It looks like just like a binlog I'd get if I ran build...

What do you get when you... (from powershell!)

get-filehash "C:\Program Files (x86)\Windows Kits\10\lib\10.0.18362.0\um\x64\onecoreuap*"

gci "C:\Program Files (x86)\Windows Kits\10\lib\10.0.18362.0\um\x64\" | measure
@DHowett commented on GitHub (Jun 11, 2020): This is crazy. It looks like just like a binlog I'd get if I ran build... What do you get when you... (from powershell!) ``` get-filehash "C:\Program Files (x86)\Windows Kits\10\lib\10.0.18362.0\um\x64\onecoreuap*" gci "C:\Program Files (x86)\Windows Kits\10\lib\10.0.18362.0\um\x64\" | measure ```
Author
Owner

@Chips1234 commented on GitHub (Jun 11, 2020):

For get-filehash "C:\Program Files (x86)\Windows Kits\10\lib\10.0.18362.0\um\x64\onecoreuap*":

Algorithm       Hash                                                                   Path
---------       ----                                                                   ----
SHA256          42427B6CAD5990579D71916188E5CAB8E413B7C50D64A673088C0A7E8BC737C9       C:\Program Files (x86)\Window...
SHA256          72D6C1A19E5D496538003D6541B46C85ADAD7D03E70B0E3C2F1B5CA494E9B653       C:\Program Files (x86)\Window...
SHA256          6682F4011317E26811C50C37CB20FD544B4FF9CA1A3ECF57CFC19303212703D1       C:\Program Files (x86)\Window...

And for gci "C:\Program Files (x86)\Windows Kits\10\lib\10.0.18362.0\um\x64\" | measure:

Count    : 476
Average  :
Sum      :
Maximum  :
Minimum  :
Property :
@Chips1234 commented on GitHub (Jun 11, 2020): For `get-filehash "C:\Program Files (x86)\Windows Kits\10\lib\10.0.18362.0\um\x64\onecoreuap*"`: ``` Algorithm Hash Path --------- ---- ---- SHA256 42427B6CAD5990579D71916188E5CAB8E413B7C50D64A673088C0A7E8BC737C9 C:\Program Files (x86)\Window... SHA256 72D6C1A19E5D496538003D6541B46C85ADAD7D03E70B0E3C2F1B5CA494E9B653 C:\Program Files (x86)\Window... SHA256 6682F4011317E26811C50C37CB20FD544B4FF9CA1A3ECF57CFC19303212703D1 C:\Program Files (x86)\Window... ``` And for `gci "C:\Program Files (x86)\Windows Kits\10\lib\10.0.18362.0\um\x64\" | measure`: ``` Count : 476 Average : Sum : Maximum : Minimum : Property : ```
Author
Owner

@Chips1234 commented on GitHub (Jun 11, 2020):

Do you need more information?

@Chips1234 commented on GitHub (Jun 11, 2020): Do you need more information?
Author
Owner

@Chips1234 commented on GitHub (Jun 11, 2020):

@DHowett

@Chips1234 commented on GitHub (Jun 11, 2020): @DHowett
Author
Owner

@zadjii-msft commented on GitHub (Jun 11, 2020):

Just a heads up - he's a little busy with other fires at the moment, so it might take him a little while to reply. I'd maybe give it a couple days.

@zadjii-msft commented on GitHub (Jun 11, 2020): Just a heads up - he's a little busy with other fires at the moment, so it might take him a little while to reply. I'd maybe give it a couple days.
Author
Owner

@Chips1234 commented on GitHub (Jun 11, 2020):

Ok then. Thanks for telling me.

@Chips1234 commented on GitHub (Jun 11, 2020): Ok then. Thanks for telling me.
Author
Owner

@Chips1234 commented on GitHub (Jun 12, 2020):

Ok, problem solved! Turns out, I should be using the stable version of vs. I uninstalled the preview then installed the stable and it worked! Maybe we should report this whole incident to the VS team? Thanks for the help!

@Chips1234 commented on GitHub (Jun 12, 2020): Ok, problem solved! Turns out, I should be using the stable version of vs. I uninstalled the preview then installed the stable and it worked! Maybe we should report this whole incident to the VS team? Thanks for the help!
Author
Owner

@DHowett commented on GitHub (Jun 12, 2020):

Wow! Thanks for figuring that out. That's so strange

@DHowett commented on GitHub (Jun 12, 2020): Wow! Thanks for figuring that out. That's so strange
Author
Owner

@Chips1234 commented on GitHub (Jun 12, 2020):

It is. Thanks anyways

@Chips1234 commented on GitHub (Jun 12, 2020): It is. Thanks anyways
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#8562