當我嘗試使用Invoke-Command模塊時,Powershell正在拋出錯誤。Powershell 4.0拋出錯誤爲無效命令Invoke-MsBuild
Error: "The term 'Invoke-MsBuild' 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 included, verify that the path is correct and try again."
我還進口了使用該模塊:
Import-Module -Name <Path to the Invoke-MsBuild.psd1>
導入它的工作原理之後,但在當前會話關閉,下一次我嘗試運行這再次顯示錯誤。模塊如何被持久化。
你有一個正確的觀點。我的問題是通過更新PowerShell版本到5.0來解決的。 – Akki