2016-11-11 2 views
0

다음 항목을 참조하여 Azure 가상 컴퓨터에 ASP.NET 응용 프로그램을 배포하십시오. 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 Machine File Copy 또는 Azure File Copy 작업을 사용하여 실행하기 전에 스크립트를 VM에 복사하십시오.