CI/CD of a ASP.NET Core Web API using VSTS CI/CD of a ASP.NET Core Web API using VSTS azure azure

CI/CD of a ASP.NET Core Web API using VSTS


As the warning message, your repository seems has no web project.So you should deselect the Publish Web Projects option in .NET Core publish task, and specify your .csproj in project(s) option.

enter image description here

And you can also find the hint message for Publish Web Projects option as below:

If true, the task will try to find the web projects in the repository and run the publish command on them. Web projects are identified by presence of either a web.config file or wwwroot folder in the directory.


This may help you..

I also faced this error according to my case i use wwwroot folder for save my files

project.csproj

  <ItemGroup>    <Folder Include="wwwroot\FoodItem\" />    <Folder Include="wwwroot\Shops\" />  </ItemGroup>

after i push in to the vsts there were no wwwroot folder in side repo. because of that i got this error then again i pushed wwwroot with sub folders error fixed