我在Visual Studio Team Services上創建了一個CI構建版本來構建我的ASPNET 5網站。Azure PowerShell腳本 - 無法驗證參數「名稱」上的參數
我按照this article中的步驟操作。
我有第一個PowerShell腳本拉下DNX,並且項目通過構建步驟成功構建。
但是,Azure PowerShell腳本步驟失敗。
調試它,我創建了一個簡單的腳本PSPing.ps1只包含以下內容:
Write-Host "Hello World"
構建過程的結構如下:
當我運行該過程,我收到以下錯誤:
ScriptPath= C:\a\1\s\scripts\PingAuth.ps1 scriptCommand= & "C:\a\1\s\scripts\PingAuth.ps1" Cannot validate argument on parameter 'Name'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again. Cannot index into a null array. Deploy Url: Website Name:
我不明白這個錯誤,我不明白的地方部署網址和網站名稱從何而來?
Downvote,請發佈導致問題的代碼而不是鏈接。包含您嘗試解決問題的內容也很有幫助。 – user4317867
我已經包含了構建步驟的圖像。我沒有解釋我做了什麼來嘗試解決這個問題 - 我創建了一個簡單的PowerShell腳本,並將其添加爲第一步。 –