Closed MarijnS95 closed 6 months ago
I don't think that script is designed to be run out of band / outside the order established in DoAll.ps1
That was my impression too, though it seems trivial to make it work out of the box on a clean repo. Especially as this script is supposed to be run (when updating external bindings) before the DoAll
step (and DoAll
, unlike the name implies, does not scrape headers for obvious reasons).
Adding Install-BuildTools
to the script does appear to be the right solution. Thanks for reporting.
When checking out a clean repo, running
.\scripts\RecompileIdlFilesForScraping.ps1
for https://github.com/microsoft/win32metadata/blob/main/CONTRIBUTING.md#direct3d-agility-sdk seems to be missing a call toInstall-BuildTools
(or another setup utility):After running
DoAll.ps1
first (without terminating it early which seems to corrupt some.cs
files used in subsequentDoAll.ps1
runs, even though it installsBuildTools
all the way at the start), the needed file becomes available and the script succeeds correctly.