tag:help.appveyor.com,2012-11-13:/discussions/problems/765-no-artifact-found-that-can-be-deployed-using-webdeployAppVeyor: Discussion 2018-09-09T21:00:32Ztag:help.appveyor.com,2012-11-13:Comment/345323952014-09-11T13:42:12Z2014-09-11T13:42:12ZNo artifact found that can be deployed using WebDeploy<div><p>Hi Mark,</p>
<p>Do you have "Package Web Applications for Web Deploy" enabled on
Build tab of project settings?</p>
<p>-Feodor</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/345323952018-07-10T16:51:55Z2018-07-10T16:51:57ZNo artifact found that can be deployed using WebDeploy<div><p>We are in 2018. I have the same problem on AppVeyor. Same message.</p>
<p>My solution is a MVC VS 2017 project with .NET Core 2. The build is OK. After, I receive the following message: "Neither 'WebDeploy package', nor 'Web application', nor 'Zip archive' artifact was found that can be deployed using WebDeploy provider."</p>
<p>"Package Web Applications for Web Deploy" option is selected.</p>
<p>WHhat is the problem?</p></div>Huguestag:help.appveyor.com,2012-11-13:Comment/345323952018-07-10T19:17:08Z2018-07-10T19:17:08ZNo artifact found that can be deployed using WebDeploy<div><p><strong>@Hugues</strong> sorry for the confusion. This checkbox works for .NET Framework ASP.NET Web applications (not .NET Core ones). For .NET Core, you have to run <code>dotnet publish</code> after build and then package published folder as an artifact.</p>
<p>YAML sample:</p>
<pre>
<code>after_build:
- cmd: dotnet publish src\CoreWebApplication1 --output %appveyor_build_folder%\dist
artifacts:
- path: dist</code>
</pre>
<p>If you use UI, add <code>dotnet publish</code> command as <strong>After build script</strong> in <strong>Build</strong> tab and set folder to package artifact in <strong>Artifacts</strong> tab.<br>
Optionally you can set artifact name and use it in Web Deploy settings, but it is not needed if you have only one artifact.</p>
<p>Side note. If you deploy to Azure by any change, consider <a href="https://www.appveyor.com/docs/deployment/azure-app-service-zip-push-deploy/">Zip push deploy</a>.</p></div>Ilya Finkelshteyn