2016-11-11 6 views
0

以下の記事を参照して、ASP.NETアプリケーションをAzure仮想マシンに展開してください。 https://www.visualstudio.com/en-us/docs/release/examples/azure/net-to-azure-vm#build特定のファイルがartifactstagingdirectoryにコピーされない

私はエラーの下に取得しています:

##[error]System.Management.Automation.RuntimeException: The term 'C:\temp\ConfigureWebserver.ps1' 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. ---> System.Management.Automation.RuntimeException: The term 'C:\temp\ConfigureWebserver.ps1' 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.

私は手動でVMにConfigureWebserver.ps1ファイルをコピーしてビルドを展開する場合、正常に展開することができます。

+0

「VMでConfigureWebserver.ps1ファイルを手動でコピーしてからビルドを展開すると、正常に展開できます。」という意味を明確にすることはできますか。 – Adrian

+0

あなたは 'ビルドステップの直前に'常にコピーするようにファイルの出力ディレクトリにコピーするプロパティを設定する 'ことを忘れていませんか? – baywet

答えて

0

WindowsマシンファイルコピーまたはAzureファイルコピータスクを使用して、実行する前にスクリプトをVMにコピーします。

関連する問題