【发布时间】:2019-06-06 19:20:49
【问题描述】:
我有一个使用 asp.net 核心完成的网站,并使用 AzureDevOps 进行部署,同时也在 Azure 网站上托管。在我的部署管道上,我添加了一个 powershell 任务来更改 web.config。请看图片
现在,在脚本上我有 "D:\\home\\site\\wwwroot\\web.config" 这是我打电话时得到的路径
Directory.GetFiles(Directory.GetCurrentDirectory()); 通过 rest api 来自服务器。
但是当我在 powershell 上运行它时,我得到 not file found 错误。
如何使用 azure deploy 管道中的 powershell 访问 Azure .net core webiste 文件?
【问题讨论】:
标签: azure powershell azure-devops devops azure-devops-rest-api