Skip to content

Start-PSBuild failing on Windows #1715

@SteveL-MSFT

Description

@SteveL-MSFT

PS C:\Users\slee\Repos\PowerShell> Start-PSBuild
WARNING: Could not find 'dotnet', appending C:\Users\slee\AppData\Local\Microsoft\dotnet to PATH.
Get-ChildItem : Cannot find path 'C:\Program Files (x86)\Windows Kits\1' because it does not exist.
At C:\Users\slee\Repos\PowerShell\build.psm1:133 char:18

  • ... $mcexe = Get-ChildItem "${env:ProgramFiles(x86)}\Windows Kits\10" ...
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (C:\Program Files (x86)\Windows Kits\1:String) [Get-ChildItem], ItemNotF
      oundException
    • FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand

mc.exe not found. Run Start-PSBootstrap or install Microsoft Windows 10 SDK from
https://developer.microsoft.com/en-US/windows/downloads/windows-10-sdk
At C:\Users\slee\Repos\PowerShell\build.psm1:135 char:13

  •         throw 'mc.exe not found. Run Start-PSBootstrap or install ...
    
  •         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : OperationStopped: (mc.exe not foun.../windows-10-sdk:String) [], RuntimeException
    • FullyQualifiedErrorId : mc.exe not found. Run Start-PSBootstrap or install Microsoft Windows 10 SDK from https:/
      /developer.microsoft.com/en-US/windows/downloads/windows-10-sdk

Start-PSBootStrap reports that everything needed is installed including Win10 SDK

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions