[英]deployment of azure web app and thier webjobs using VSTS CI/CD
[英]CI/CD of a ASP.NET Core Web API using VSTS
我使用Visual Studio 2017(Community Edition)創建了一個ASP.NET Core Web API應用程序。 我可以使用Visual Studio成功發布到Azure App Service。
我現在想要使用VSTS設置CI / CD。 我使用了Visual Studio中的“配置持續交付”選項,該選項在VSTS中創建了一個項目並創建了一個構建定義。 我必須在VSTS中基於'ASP.NET Core'模板創建一個新的構建定義,以避免Nuget恢復錯誤。 現在構建解決方案並運行測試,但“發布”任務完成並發出警告 -
##[warning]No web project was found in the repository. Web projects are identified by the presence of either a web.config file or wwwroot folder in the directory.
“發布工件”任務也有類似的警告 -
##[warning]Directory 'd:\a\1\a' is empty. Nothing will be added to build artifact 'drop'.
顯然,構建不會產生任何偽影。
我是否需要將任何構建任務添加到默認的ASP.NET Core構建模板中? 如何使用VSTS將我的Web API發布到Azure?
這可能對你有幫助..
我也根據我的情況遇到了這個錯誤我用wwwroot文件夾來保存我的文件
project.csproj
<ItemGroup>
<Folder Include="wwwroot\FoodItem\" />
<Folder Include="wwwroot\Shops\" />
</ItemGroup>
在我推進到vsts后,側面回購中沒有wwwroot文件夾。 因為我得到了這個錯誤然后再次推送wwwroot與子文件夾錯誤修復
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.