Skip to content

9506hqwy/template-csharp-package

Repository files navigation

Template for C# Package

This repository provides a template for C# package.

Prepare

  1. Rename sln file name, and replace dotnet.defaultSolution in the .vscode/settings.json.
  2. Remove example package project and test project.

Development

Formatting

Format source code.

dotnet format

Testing

Execute test code.

dotnet test

Profiling

Frame Graph

Use dotnet diagnostic tools.

dotnet trace collect --format Chromium -- <Binary Path>

Open xxx.chromium.json using Chromium.

  1. Open URL chome://tracing or edge://tracing.
  2. Load xxx.chromium.json.

Performance Counter

Use dotnet diagnostic tools.

dotnet counters collect -- <Binary Path>

Benchmark

Use BenchmarkDotNet and run benchmark application.

dotnet run -c Release --project <Benchmark Project Path>

Updating

Check newer depenency packages.

dotnet list package --outdated

License Checking

TODO

Documentation

Generate API document.

docfx doc/docfx.json

Build Artifacts

Build packages.

dotnet pack -o ./artifacts

About

This repository provides a template for C# package.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Contributors 2

  •  
  •