Re-align the commandline and the VS builds #15466

Closed
opened 2026-01-31 04:39:22 +00:00 by claunia · 1 comment
Owner

Originally created by @zadjii-msft on GitHub (Oct 6, 2021).

Originally assigned to: @zadjii-msft on GitHub.

In the past, you could build from VS or the commandline perfectly well, then hop over to the other and build a project, then hop back to the other, and it worked totally seamlessly.

Sometime in the last couple months, the VS builds and the commandline builds diverged somehow. Now, building from the cmdline acts like a clean rebuild, almost as if there are different variables defined or something.

Some snippets from the recent build I did:

7>_GenerateBranchAndBrandingCache:
         git.exe rev-parse --abbrev-ref HEAD
         dev/migrie/b/11285-opacity-on-win10
       _RunFeatureFlagScript:
         powershell -NoLogo -NoProfile -NonInteractive -ExecutionPolicy ByPass -Command "d:\dev\public\terminal\\tools\Generate-FeatureStagingHeader.ps1" -Path "d:\dev\public\terminal\src\features.xml" -Branding Dev
     7>Done Building Project "d:\dev\public\terminal\build\rules\GenerateFeatureFlags.proj" (default targets).
     3>Project "d:\dev\public\terminal\src\cascadia\TerminalControl\TerminalControlLib.vcxproj.metaproj" (3) is building "d:\dev\public\terminal\src\cascadia\TerminalConnection\TerminalConnection.vcxproj.metaproj" (4) on node 1 (default tar
       gets).
     4>Project "d:\dev\public\terminal\src\cascadia\TerminalConnection\TerminalConnection.vcxproj.metaproj" (4) is building "d:\dev\public\terminal\src\host\proxy\Host.Proxy.vcxproj" (8) on node 2 (default targets).
     8>InitializeBuildStatus:
         Creating "d:\dev\public\terminal\obj\x64\Debug\OpenConsoleProxy\OpenConsoleProxy.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
       Midl:
         C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x64\midl.exe /W1 /nologo /char signed /env x64 /out"d:\dev\public\terminal\obj\x64\Debug\OpenConsoleProxy\\" /h "IConsoleHandoff.h" /tlb "d:\dev\public\terminal\obj\x64\Debug\
         OpenConsoleProxy\OpenConsoleProxy.tlb" /target "NT100" IConsoleHandoff.idl
     6>Project "d:\dev\public\terminal\src\types\lib\types.vcxproj" (6) is building "d:\dev\public\terminal\src\dep\fmt\fmt.vcxproj" (9) on node 1 (default targets).
     9>InitializeBuildStatus:
         Creating "d:\dev\public\terminal\obj\x64\Debug\fmt\fmt.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
 C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64\CL.exe /c /Id:\dev\public\terminal\obj\x64\Debug\TerminalConnection\..\OpenConsoleProxy /Id:\dev\public\terminal\src\cascadia\
 TerminalConnection\ /I"Generated Files\\" /Id:\dev\public\terminal\obj\x64\Debug\TerminalConnection\ /Id:\dev\public\terminal\\src\cascadia\WinRTUtils\inc /Id:\dev\public\terminal\\src\inc /Id:\dev\public\terminal\\dep /Id:\dev\pub
 lic\terminal\\dep\Console /Id:\dev\public\terminal\\dep\Win32K /Id:\dev\public\terminal\\dep\gsl\include /Id:\dev\public\terminal\\dep\wil\include /Id:\dev\public\terminal\\oss\chromium /Id:\dev\public\terminal\\oss\fmt\include /Id
 :\dev\public\terminal\\oss\dynamic_bitset /Id:\dev\public\terminal\\oss\libpopcnt /Id:\dev\public\terminal\\oss\interval_tree /Id:\dev\public\terminal\\oss\boost\boost_1_73_0 /I"Generated Files\\" /I"d:\dev\public\terminal\packages
 \vcpkg-cpprestsdk.2.10.14\installed\common\include" /Zi /JMC /nologo /W3 /WX /diagnostics:column /sdl /MP /Od /Oy- /D _USRDLL /D _WINDLL /D _UNICODE /D UNICODE /D _DEBUG /D _WINRT_DLL /D WT_BRANDING_DEV /D _DEBUG /D DBG /D _WINDOWS
  /D EXTERNAL_BUILD /D __WRL_NO_DEFAULT_LIB__ /Zc:preprocessor /Gm- /EHsc /RTC1 /MDd /GS /guard:cf /fp:precise /permissive- /Zc:wchar_t /Zc:forScope /Zc:inline /GR- /std:c++17 /Yc"pch.h" /Fp"d:\dev\public\terminal\obj\x64\Debug\Term
 inalConnection\pch.pch" /Fo"d:\dev\public\terminal\obj\x64\Debug\TerminalConnection\\" /Fd"d:\dev\public\terminal\obj\x64\Debug\TerminalConnection\vc142.pdb" /external:W3 /Gd /TP /wd5104 /wd5105 /wd28204 /wd4103 /wd4201 /wd4312 /wd
 4467 /FId:\dev\public\terminal\\bin\Debug\inc\TilFeatureStaging.h /FU"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30133\lib\x86\store\references\platform.winmd" /analyze- /FC /errorReport:queu
 e /we4189 /we4100 /we4242 /we4389 /we4244 /utf-8  /bigobj /Zc:twoPhase- /bigobj /await pch.cpp

possible culprits:

this is a small annoyance to my workflow

Originally created by @zadjii-msft on GitHub (Oct 6, 2021). Originally assigned to: @zadjii-msft on GitHub. In the past, you could build from VS or the commandline perfectly well, then hop over to the other and build a project, then hop back to the other, and it worked totally seamlessly. Sometime in the last couple months, the VS builds and the commandline builds diverged somehow. Now, building from the cmdline acts like a clean rebuild, almost as if there are different variables defined or something. Some snippets from the recent build I did: ``` 7>_GenerateBranchAndBrandingCache: git.exe rev-parse --abbrev-ref HEAD dev/migrie/b/11285-opacity-on-win10 _RunFeatureFlagScript: powershell -NoLogo -NoProfile -NonInteractive -ExecutionPolicy ByPass -Command "d:\dev\public\terminal\\tools\Generate-FeatureStagingHeader.ps1" -Path "d:\dev\public\terminal\src\features.xml" -Branding Dev 7>Done Building Project "d:\dev\public\terminal\build\rules\GenerateFeatureFlags.proj" (default targets). 3>Project "d:\dev\public\terminal\src\cascadia\TerminalControl\TerminalControlLib.vcxproj.metaproj" (3) is building "d:\dev\public\terminal\src\cascadia\TerminalConnection\TerminalConnection.vcxproj.metaproj" (4) on node 1 (default tar gets). 4>Project "d:\dev\public\terminal\src\cascadia\TerminalConnection\TerminalConnection.vcxproj.metaproj" (4) is building "d:\dev\public\terminal\src\host\proxy\Host.Proxy.vcxproj" (8) on node 2 (default targets). 8>InitializeBuildStatus: Creating "d:\dev\public\terminal\obj\x64\Debug\OpenConsoleProxy\OpenConsoleProxy.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified. Midl: C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x64\midl.exe /W1 /nologo /char signed /env x64 /out"d:\dev\public\terminal\obj\x64\Debug\OpenConsoleProxy\\" /h "IConsoleHandoff.h" /tlb "d:\dev\public\terminal\obj\x64\Debug\ OpenConsoleProxy\OpenConsoleProxy.tlb" /target "NT100" IConsoleHandoff.idl 6>Project "d:\dev\public\terminal\src\types\lib\types.vcxproj" (6) is building "d:\dev\public\terminal\src\dep\fmt\fmt.vcxproj" (9) on node 1 (default targets). 9>InitializeBuildStatus: Creating "d:\dev\public\terminal\obj\x64\Debug\fmt\fmt.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified. ``` ``` C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64\CL.exe /c /Id:\dev\public\terminal\obj\x64\Debug\TerminalConnection\..\OpenConsoleProxy /Id:\dev\public\terminal\src\cascadia\ TerminalConnection\ /I"Generated Files\\" /Id:\dev\public\terminal\obj\x64\Debug\TerminalConnection\ /Id:\dev\public\terminal\\src\cascadia\WinRTUtils\inc /Id:\dev\public\terminal\\src\inc /Id:\dev\public\terminal\\dep /Id:\dev\pub lic\terminal\\dep\Console /Id:\dev\public\terminal\\dep\Win32K /Id:\dev\public\terminal\\dep\gsl\include /Id:\dev\public\terminal\\dep\wil\include /Id:\dev\public\terminal\\oss\chromium /Id:\dev\public\terminal\\oss\fmt\include /Id :\dev\public\terminal\\oss\dynamic_bitset /Id:\dev\public\terminal\\oss\libpopcnt /Id:\dev\public\terminal\\oss\interval_tree /Id:\dev\public\terminal\\oss\boost\boost_1_73_0 /I"Generated Files\\" /I"d:\dev\public\terminal\packages \vcpkg-cpprestsdk.2.10.14\installed\common\include" /Zi /JMC /nologo /W3 /WX /diagnostics:column /sdl /MP /Od /Oy- /D _USRDLL /D _WINDLL /D _UNICODE /D UNICODE /D _DEBUG /D _WINRT_DLL /D WT_BRANDING_DEV /D _DEBUG /D DBG /D _WINDOWS /D EXTERNAL_BUILD /D __WRL_NO_DEFAULT_LIB__ /Zc:preprocessor /Gm- /EHsc /RTC1 /MDd /GS /guard:cf /fp:precise /permissive- /Zc:wchar_t /Zc:forScope /Zc:inline /GR- /std:c++17 /Yc"pch.h" /Fp"d:\dev\public\terminal\obj\x64\Debug\Term inalConnection\pch.pch" /Fo"d:\dev\public\terminal\obj\x64\Debug\TerminalConnection\\" /Fd"d:\dev\public\terminal\obj\x64\Debug\TerminalConnection\vc142.pdb" /external:W3 /Gd /TP /wd5104 /wd5105 /wd28204 /wd4103 /wd4201 /wd4312 /wd 4467 /FId:\dev\public\terminal\\bin\Debug\inc\TilFeatureStaging.h /FU"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30133\lib\x86\store\references\platform.winmd" /analyze- /FC /errorReport:queu e /we4189 /we4100 /we4242 /we4389 /we4244 /utf-8 /bigobj /Zc:twoPhase- /bigobj /await pch.cpp ``` possible culprits: * #11266 * #10208 * #9654 * #10727 * #10593 * #10342 _this is a small annoyance to my workflow_
Author
Owner

@zadjii-msft commented on GitHub (Nov 17, 2021):

I know what I did. I installed VS 2022, which is a prerelease VS install. tools\razzle prefers the stable builds. I think I'm gonna remove that.

@zadjii-msft commented on GitHub (Nov 17, 2021): I know what I did. I installed VS 2022, which is a _prerelease_ VS install. `tools\razzle` prefers the stable builds. I think I'm gonna remove that.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#15466