Packaging ASP.NET 5 applications and deploying using Web Deploy provider

James Skimming's Avatar

James Skimming

27 Dec, 2015 11:17 PM

I'm just trying out ASP.NET 5 and seeing how to set-up CI and deployment using AppVeyor. How do I create a build artifact to be used to deploy the site (to an Azure AppService)?

Repo: https://github.com/JSkimming/MicroservicesDemo (right now I'm ignoring appveyor.yml)
Build: https://ci.appveyor.com/project/JSkimming/microservicesdemo

Build is going fine, but when I enable "Package Web Applications for Web Deploy" it doesn't. Which isn't entirely surprising as it's not an option in the Visual Studio publish wizard.

From reading another thread, the corresponding GitHub issue, and the fact that "ASP.NET 5 application" is an option for the WebDeploy provider, it seems I should be able to do do this, but how?

  1. Support Staff 1 Posted by Feodor Fitsner on 28 Dec, 2015 12:56 AM

    Feodor Fitsner's Avatar

    Hi James,

    There is no automatic packaging for ASP.NET 5 apps yet.

    You can use dnu publish command to publish ASP.NET 5 app to a folder then push that folder as zip artifact. Take a look at this sample appveyor.yml: https://github.com/FeodorFitsner/appveyor-deployment/blob/master/ap...

  2. 2 Posted by James Skimming on 28 Dec, 2015 01:18 AM

    James Skimming's Avatar

    Hi Feodor

    I've managed to zip up the output of dnu publish, but how can that be deployed using WebDeploy? I've tried but I just get an error.

    https://ci.appveyor.com/project/JSkimming/microservicesdemo/build/1...

  3. Support Staff 3 Posted by Feodor Fitsner on 28 Dec, 2015 01:21 AM

    Feodor Fitsner's Avatar

    Try using https:// in server address.

  4. 4 Posted by James Skimming on 28 Dec, 2015 01:48 AM

    James Skimming's Avatar

    Got it. it was also missing the .scm. part to the Kudo site

  5. James Skimming closed this discussion on 28 Dec, 2015 01:48 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac