Azure部署未找到要部署的任何文件

时间:2016-11-29 10:41:04

标签: asp.net azure asp.net-web-api deployment azure-web-sites

我已经配置了ASP.NET Web API服务的两个本地部署。一个到我们的登台服务器,一个到我们的生产服务器。两者都没有任何问题。

我最近开始研究如何将这些服务部署到Azure,因为我们希望更多地使用云服务。所以我已经设置了我在截图中创建的Azure帐户的部署。

enter image description here

它连接到Azure帐户,但随后无法说明找不到要部署的任何文件,如下面的屏幕截图所示。

enter image description here

当我查看文件夹时,文件肯定存在。它们与部署到登台和生产端点的文件相同。

我无法理解为什么Azure部署无法找到这些文件,但我们的本地部署确实如此。

1 个答案:

答案 0 :(得分:1)

我可以将Web应用程序部署到我自己的Azure应用程序服务中,这是详细的步骤,您可以参考它。

构建定义

enter image description here

NuGet安装程序

enter image description here

Visual Studio Build

enter image description here

注意:你可以从 MSBuild Arguments 找到 PackageLocation ($(build.artifactstagingdirectory))

Azure App Service Deploy

enter image description here

注意:根据您从 MSBuild Arguments

找到的 PackageLocation 的值,指定包或文件夹
相关问题