-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Description
I got the missing DIA SDK error when first building on my laptop just now:
Error: DIA SDK is missing at "C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\DIA SDK". This is due to a bug in the Visual Studio installer. It does not install DIA SDK at "C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\" but rather at the install location of previous Visual Studio version. The workaround is to copy the DIA SDK folder from the Visual Studio install location of the previous version to "C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\" and then build.
Visual Studio Express does not include the DIA SDK. You need Visual Studio 2017 or 2019 (Community is free).
In the current machine, I have 15.9.11 Preview 1 and 16.5.0 Preview 2. I am building in the VS 2019 prompt, where VSINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\. However the single DIA SDK folder is under the VS 2017 prompt's VSINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio\Preview\Enterprise.
I copied it from there to solve the problem, so the message may be fully accurate. However, I have seen this prompt at least 3 years ago, so it is not clear that this will solve itself. Can we look in more places for it, to remove this stumbling block when building the repo the first time?
Perhaps it could look under C:\Program Files (x86)\Microsoft Visual Studio for DIA SDK if it can't find one under VSINSTALLDIR?