当我尝试使用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