Search code examples
azure-devops-extensions

How to create Azure DevOps Release Task for .NET Core 3.0 Self-contained app


I have a .NET Core 3.0 self-contained CLI app and I would like to make it available in Azure DevOps Release Pipelines Task. I wish to have task like "Use MyApp". Something like "Use Node" or "Use .NET Core" style. The task flow would be like these:

Task1: Use MyApp

  1. Download EXE file from github
  2. Set PATH to include the location of EXE

Task2: Run MyApp

  1. Run MyApp with args from Az DevOps GUI

I have been going through many articles but I have yet to see any EXE file example. This is the closest I can get but it was NPM package. Do I need to package my CLI app into NPM, if thats even possible? https://devkimchi.com/2019/07/03/building-azure-devops-extension-on-azure-devops-2/

Thanks for advise. //Ardi


Solution

  • After mashing-up various samples, I finaly made this to work. I still have chose Node+Typescript instead of Powershell.

    Here's a code how I wrapped a self-contained app EXE file and made available as Azure Pipelines Task.

    https://github.com/rdagumampan/yuniql-azure-pipelines-tasks