Get Windows SDK path from Registry
Summary of the Pull Request
The Windows SDK path may not be the same on all PCs, especially when Visual Studio (VS) is installed on a drive other than C:/. However, we can read the correct path from the Registry, which this PR does.
Validation Steps Performed
- Install VS on
E:/. - Build the solution and see it passes without erroring on accessing
MakePri.exe.
I realized it's important to mention why this is important: I've a DevDrive at "E:/", and I'm trying to keep all dev related tools and projects on that drive exclusively. Wish C++ tools were smart enough to know where to look, but until then, we'd need to do this ourselves.
I think we have a few more of these, actually - makepri and makeappx are both used by powershell scripts. Would you mind having a look at the others?
Unfortunately, I can't repro the issue locally. @DHowett Could you take a look?
I can raise PR solving the issue and passing the test case as well!
/azp run
Azure Pipelines successfully started running 1 pipeline(s).