A library containing all P/Invoke code so you don't have to import it every time. Maintained and updated to support the latest Windows OS.
Перейти к файлу
Andrew Arnott 29cf0a517d
Update .NET Core SDK to 3.1.302
2020-08-10 08:02:17 -06:00
.github Enable GitHub Dependabot 2020-08-04 10:01:41 -06:00
.vscode Recommend C# extension in VS Code by its new name 2020-03-28 13:03:09 -06:00
azure-pipelines Set output variables as well 2020-07-25 09:59:36 -06:00
src Fix conditional imports so they skip import on linux 2020-04-23 09:36:52 -06:00
test Bump coverlet.msbuild from 2.8.1 to 2.9.0 2020-08-04 16:16:14 +00:00
tools Avoid unannounced system restart 2020-06-15 09:36:29 -06:00
.editorconfig Enable GitHub Dependabot 2020-08-04 10:01:41 -06:00
.gitattributes Add init.ps1 and Install-DotNetSdk.ps1 scripts 2019-07-08 07:03:55 -06:00
.gitignore Add Directory.Build.rsp file 2020-03-03 09:50:03 -07:00
CONTRIBUTING.md Reorder the docs to make more sense 2020-04-23 09:38:14 -06:00
Directory.Build.props Bump Nerdbank.GitVersioning from 3.1.91 to 3.2.31 2020-08-04 16:03:38 +00:00
Directory.Build.rsp Add Directory.Build.rsp file 2020-03-03 09:50:03 -07:00
Directory.Build.targets Move test project authoring into test folder 2020-04-19 10:34:22 -06:00
Expand-Template.cmd Add Expand-Template.cmd stub 2019-11-14 21:57:40 -07:00
Expand-Template.ps1 Fix build and snk updates during template expansion 2020-07-24 08:46:23 -06:00
LICENSE Add script for proper expansion 2019-06-17 09:37:46 -06:00
Library.sln Add README as solution item 2020-05-11 09:40:59 -06:00
README.md Update link to NB.GV 2020-04-17 12:10:46 -06:00
azure-pipelines.yml Lose guid in favor of feed name 2020-04-09 23:23:39 -06:00
global.json Update .NET Core SDK to 3.1.302 2020-08-10 08:02:17 -06:00
init.cmd Capture exit codes within init.cmd from ps1 script 2019-11-14 21:43:54 -07:00
init.ps1 Avoid unannounced system restart 2020-06-15 09:36:29 -06:00
nuget.config Redirect Only divert global package cache in Azure Pipelines 2019-08-16 16:54:28 -06:00
strongname.snk Fix build and snk updates during template expansion 2020-07-24 08:46:23 -06:00
stylecop.json Use top-level test folder 2020-04-09 23:33:39 -06:00
version.json Initial commit 2019-06-16 17:08:01 -06:00

README.md

Your Library

An awesome template for your awesome library

NuGet package

Azure Pipelines status GitHub Actions status codecov

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 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.