我使用Visual Studio 2017(社区版)创建了一个ASP.NET Core Web API应用程序。 我成功地使用Visual Studio发布到Azure App Service。
现在,我想使用VSTS设置CI/CD。 我使用Visual Studio中的“配置持续交付”选项,在VSTS中创建了一个项目并创建了构建定义。 为了避免Nuget还原错误,我不得不在VSTS中基于“ASP.NET Core”模板创建一个新的构建定义。 现在解决方案可以构建并运行测试,但是“发布”任务会出现警告-
##[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?