Open AlexeiNaabal opened 2 months ago
+1 for this...
Some steps I just went through:
git clean -dfx
(as I only build the project infrequently, and some stuff was using old intermediate files and breaking)Import-Module .\tools\OpenConsole.psm1
must be run with powershell 7Invoke-OpenConsoleBuild
fails because console-driven build does not detect vcpkg itself is missing.bcz
build flow must be run in VS dev environment (ie after running vcvarsall), and also doesn't handle vcpkg missing.After letting VS install stuff, bcz
still does not work, because of the nuget issue listed above.
Invoke-OpenConsoleBuild
does work, as that does trigger nuget restore.
Another thing of note is that both msbuild and VS complain that the sln isn't properly formatted, with an error like:
Error parsing solution file at c:\src\terminal\OpenConsole.sln: Exception has been thrown by the target of an invocation.
(although it's ignorable and iirc has been happening for a long time).
You should probably suggest to pass -m
to Invoke-OpenConsoleBuild
, as otherwise build is incredibly slow.
Additionally, -p:Configuration=Release,Platform=x64
.
So the final line is Invoke-OpenConsoleBuild -m "-p:Configuration=Release,Platform=x64"
Since Invoke-OpenConsoleBuild
hardcodes use of sln, it's not currently possible to specify which individual project to build.
We followed the building section of README.md and doc/building.md to build the terminal, and found several uncleared guidance.
Following the guidance, we expect:
While the actual behavior is:
Please update the building documentation