Setup: check for the C++ build tools and Windows SDK before choosing the game #44
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/44"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from DexNom/VIctory. Originally posted by kilolimaVI on 2026-11-25T20:25:04Z.
Without Visual Studio's C++ build tools or a Windows SDK,
Setup.cmdasks for the game and then runs the whole release build, which fails only at the end with a linker error. Setup now checks both right after the Rust check, before the game picker, and names what is missing with awingetcommand that installs both.vswhere -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64KitsRoot10from the registry, with an x64kernel32.libunderLib\*\um\x64Tested (Windows 11 26300, Build Tools 2022 with the C++ workload)
Test-BuildToolsalone: nothing missing on this machine; with a nonexistentvswhere.exeit reports the C++ build tools; with a nonexistent SDK root it reports the SDK.Not tested
vswheredoes not find, e.g. a standalone MSVC.AI use
Script change and description written with Claude (Claude Opus 5.5); I ran the checks above.
Imported from DexNom/VIctory. Originally posted by andrewDoing on 2026-11-27T00:29:12Z.
One narrow SDK-probe limitation at
4aea70d: I supplied a disposable SDK root containing only a genuine x64kernel32.libat the expected version path. The unmodifiedTest-BuildToolsreported no missing components, but a native x64 MSVC link needingkernel32.libanduser32.libthen failed withLNK1181. The same object and command linked successfully against the complete installed SDK.This was a deliberately simulated partial SDK, not an observed failure of a normal installation. The PR does detect a wholly missing SDK as intended. Verification was AI-assisted with GPT-6.2 Astra.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.