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

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

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