The term 'Get-FileHash' is not recognized
See original GitHub issueVersion Used: master branch Steps to Reproduce:
- download latest source, on Windows 7 64bits (with latest powershell for windows 7),
- open VS 2017 command prompt
- run restore.cmd
Expected Behavior: Everything should download fine and Build.cmd should be ready to run Actual Behavior: it throws an exception: System.Management.Automation.CommandNotFoundException: The term ‘Get-FileHash’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was include d, verify that the path is correct and try again. at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exce ption exception) at System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame) at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
Error executing command: & (Join-Path $PSScriptRoot “download-nuget.ps1”)
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (1 by maintainers)
Top Related StackOverflow Question
@hickford did you install Windows Management Framework 4.0, google for it, install and restart machine and try again, this should work.
Same problem with
restore.cmdI’m using Windows 7.