Run powershell build step in VSTS agent installed on mac?

后端 未结 6 884
暖寄归人
暖寄归人 2021-01-23 22:46

I installed VSTS build agent on mac to build xamarin iOS project. Builds worked fine until I added powershell build step. Even though I installed powershell for mac (https://git

6条回答
  •  忘掉有多难
    2021-01-23 23:32

    Things seem to have moved forward because I ran successfully today a PowerShell@2 task on a Mac Self-Hosted Agent from an Azure DevOps build pipeline.

    By checking "Enable system diagnostics" when queuing the build, the log shows me that the task found itself the path to the PowerShell Core (pwsh) that I installed on my Mac with the help of Homebrew (brew cask install powershell - see https://docs.microsoft.com/fr-fr/powershell/scripting/install/installing-powershell-core-on-macos).

提交回复
热议问题