Skip to content

A template for a NuGet package with tests, stylecop, fxcop, versioning, and Azure Pipelines build ready to go.

License

Notifications You must be signed in to change notification settings

jakeafoster/Library.Template

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Your Library

An awesome template for your awesome library

Azure Pipelines status GitHub Actions status codecov license

Features

  • Follow the best and simplest patterns of build, pack and test with dotnet CLI.
  • Init script that installs prerequisites and auth helpers, supporting both non-elevation and elevation modes.
  • Static analyzers: FxCop and StyleCop
  • Read-only source tree (builds to top-level bin/obj folders)
  • Auto-versioning (via Nerdbank.GitVersioning)
  • Builds with a "pinned" .NET Core SDK to ensure reproducible builds across machines and across time.
  • Automatically pack the library and publish it as an artifact, and even push it to some NuGet feed for consumption.
  • Testing
    • Testing on .NET Framework, multiple .NET Core versions
    • Testing on Windows, Linux and OSX
    • Tests that crash or hang in Azure Pipelines automatically collect dumps and publish as a pipeline artifact for later investigation.
  • Cloud build support
    • YAML based build for long-term serviceability, and PR review opportunities for any changes.
    • Azure Pipelines and GitHub Action support
    • Emphasis on PowerShell scripts over reliance on tasks for a more locally reproducible build.
    • Code coverage published to Azure Pipelines
    • Code coverage published to codecov.io so GitHub PRs get code coverage results added as a PR comment

Consumption

Once you've expanded this template for your own use, you should run the Expand-Template.ps1 script to customize the template for your own project.

Further customize your repo by:

  1. Verify the license is suitable for your goal as it appears in the LICENSE.md and stylecop.json files and the Directory.Build.props file's PackageLicenseExpression property.
  2. Reset or replace the badges at the top of this file.

README template for future projects

Use headings as required.

Overview

Purpose

Installation

Usage

Limitations

Building

Disclaimers

Code of Conduct

About

A template for a NuGet package with tests, stylecop, fxcop, versioning, and Azure Pipelines build ready to go.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PowerShell 90.3%
  • Inno Setup 4.4%
  • C# 2.3%
  • Batchfile 1.5%
  • Dockerfile 1.5%