Coder Social home page Coder Social logo

f2calv / azdo-pipelines-yaml-nuget Goto Github PK

View Code? Open in Web Editor NEW
1.0 0.0 0.0 128 KB

Azure DevOps YAML CI/CD pipeline which publishes a multi-targeted public NuGet package.

License: The Unlicense

C# 100.00%
yaml devops-pipeline nuget-publishing azure-devops azure-devops-pipelines nuget-package nuget gitversion

azdo-pipelines-yaml-nuget's Introduction

Publish Multi-Targeted NuGet Package w/Azure DevOps YAML Pipeline

Build Status NuGet Version NuGet

This repository is comprised of three .NET projects, these projects are to help demonstrate the YAML pipeline for publishing the NuGet package;

  • 1 x Class Library (i.e. which is packaged and deployed as a public NuGet package)
  • 1 x Test Project
  • 1 x Console Application (used to test/debug the final package)

The class library multi-targets the following frameworks;

  • .NET Framework 2.7.2
  • .NET Standard 2.0
  • .NET 5.0

The library includes references to both Entity Framework 6 and Entity Framework Core along with some compiler directives as an example of how to create a multi-targeted package.

The CI/CD YAML pipeline is located in the .azure-pipelines directory of the repository.

The pipeline consists of multiple-steps which when combined;

  1. installs key dependencies
  2. handles the semantic versioning of the package
  3. builds all the projects
  4. runs all tests and publishes code coverage report
  5. packs the class library and depending on source branch pushes package to either;

The branching strategy of this repository is GitHubFlow and the pipeline uses GitVersion to control/handle the semantic versioning of each public release. When pushing a new public release (from master) the YAML build pipeline itself is tagged with the current SemVersion and a Tag is added at that commit to provide additional traceability.

Resources;

Additional guidance on including .NET PDB/Symbols and SourceLink;

Unit test & code coverage solution; -https://www.meziantou.net/computing-code-coverage-for-a-dotnet-core-project-with-azure-devops-and-coverlet.htm

azdo-pipelines-yaml-nuget's People

Contributors

f2calv avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.