.NET Core Pipeline Tasks by IowaComputerGurus, Inc.
This collection of tasks includes helpful Azure DevOps pipeline utilities that will assist with CI/CD when working with .NET Core applications of all types, including ASP.NET Core.
Set Assembly Version
This task was created to recursively search the source directory and identify all .csproj files included as part of .NET Core applications and to update the Version Number as provided by the build environment.
Once all .csproj files have been identified the task will look for a default 0.0.0 version declaration, as follows, and will update it with the proper version number and resave the file
This task should be used before compilation to ensure that .NET Core will include your version number in the compiled assemblies.
Errors & Warnings
Script EF Core Migrations
This task will automatically call dotnet ef to create a migration script for you and prepare the script in the Build Artifacts Staging directory. Additional options exist to support muliple project types.
This task was designed to be as flexible as possible for the caller but limiting the need for setup project-to-project.
Publishing of Artifacts
Don't forget to add a Publish Artifacts or other task to store the artifact after generated.