Azure从Github部署同一解决方案下存在多个项目 Generating deployment script, fails due to invalid path

简介Azure Web APP 选择从github 应用服务生成服务部署项目时候,当解决方案下存在多个可用项目时,部署脚本会默认选择一个带有wwwroot的项目发布。如果项目不是自己想要的,需要通过下面的方式指定要发布的项目。

问题关键输出指引,如果有符合相关描述,可以参考解决方案。

Generating deployment script, fails due to invalid path
Error: Could not find a part of the path 'path'.
An error has occurred during web site deployment.
Using the following command to generate deployment script: 'azure site deploymentscript -y --no-dot-deployment -r "D:\home\site\repository" -o "D:\home\site\deployments\tools" --aspNetCoreMSBuild16 "D:\home\site\repository\Web\Twos.Web.csproj" --solutionFile "D:\home\site\repository\Twos.sln"'.
Project file path: .\Web\Twos.Web.csproj
Solution file path: .\Twos.sln
Generating deployment script for ASP.NET MSBuild16 App
Using cached version of deployment script (command: 'azure -y --no-dot-deployment -r "D:\home\site\repository" -o "D:\home\site\deployments\tools" --aspNetCoreMSBuild16 "D:\home\site\repository\UI\Twos.UI.csproj" --solutionFile "D:\home\site\repository\Twos.sln"').

解决方案, 找到WebApp的配置,应用程序设置, 添加变量 PROJECT 值 Web\Twos.Web.csproj (要发布的项目路径)

参考文档:https://github.com/Azure/webapps-deploy/issues/196

本站发布的文章受知识共享协议保护,转载、收录请标明出处。

评论


昵称:   邮箱:

Top
An error has occurred. This application may no longer respond until reloaded.Reload 🗙