Path to SignTool.exe or “Windows Kits” directory when using Visual Studio 2012

前端 未结 7 1793
-上瘾入骨i
-上瘾入骨i 2021-01-30 09:04

How do you get the path to SignTool.exe when using Visual Studio 2012?

In Visual Studio 2010, you could use



        
7条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-30 09:36

    This approach I'm using just relies on the standard build events:

    powershell -Command "(Resolve-Path \"C:\Program Files (x86)\\Windows Kits\\10\\bin\\*\\x64\" | Select-Object -Last 1).Path" > stpath
    set /p STPATH=

    It will cope with new paths as new Windows SDKs get installed and pick the latest one.

提交回复
热议问题