我在Mac上安裝了VSTS構建代理來構建xamarin iOS項目。構建工作正常,直到我添加PowerShell構建步驟。 即使我爲mac安裝了powershell(https://github.com/PowerShell/PowerShell)並重新安裝了代理,VSTS卻抱怨它沒有能夠運行構建的代理。在安裝在mac上的VSTS代理中運行powershell構建步驟?
No agent could be found with the following capabilities: DotNetFramework, Xamarin.iOS, npm
當我禁用構建步驟時,構建工作就好了。
是否有可能在Mac上運行PowerShell構建步驟?
這很聰明,爲我的項目節省了一大筆頭痛。 問題:如果您想要做同樣的事情,但是還會將參數傳遞給Bash腳本並將它們傳遞給Powershell腳本,該怎麼辦? – KeithA45