Staging
v0.8.1
Revision e31b8a5cd13ca529e59c1e05d4524ae750a5b5a0 authored by Miss Islington (bot) on 28 July 2020, 14:56:15 UTC, committed by GitHub on 28 July 2020, 14:56:15 UTC
(cherry picked from commit 5e3826785dcc64f8e1a8a7bde11b88fbb40943be)

Co-authored-by: Dmytro Litvinov <litvinov.dmytro.it@gmail.com>
1 parent bc2c0e9
Raw File
find-sdk.yml
# Locate the Windows SDK and add its binaries directory to PATH
#
# `toolname` can be overridden to use a different marker file.

parameters:
  toolname: signtool.exe

steps:
  - powershell: |
      $kitroot = (gp 'HKLM:\SOFTWARE\Microsoft\Windows Kits\Installed Roots\').KitsRoot10
      $tool = (gci -r "$kitroot\Bin\*\${{ parameters.toolname }}" | sort FullName -Desc | select -First 1)
      if (-not $tool) {
          throw "SDK is not available"
      }
      Write-Host "##vso[task.prependpath]$($tool.Directory)"
      Write-Host "Adding $($tool.Directory) to PATH"
    displayName: 'Add WinSDK tools to path'
back to top