Skip to content
| Marketplace
Sign in
Visual Studio>Tools>C# port of Shields-style badge library
C# port of Shields-style badge library

C# port of Shields-style badge library

penlv

|
1,559 clicks
| (2) | Free
This is C# port of Shields-style badge library. You can use this tool to generate a Pixel-perfect Retina-ready metadata badges for open source project
Get Started

C# port of Shields-style badge libraryDotBadge

This project is hosted on Github . Go star it !

 

Standalone Exe

Download the command line exe, invoke your cmd shell and run  "DotBadge.exe --help"


Sample

C#
Edit|Remove
csharp
DotBadge.exe -sb "Downloads" -st "1000" -c "Green" -sl 0 
DotBadge.exe -sb "Downloads" -st "1000" -c "Green" -sl 0 
  demo1
C#
Edit|Remove
csharp
DotBadge.exe -sb "Build" -st "fail" -c "Red" -sl 0 
DotBadge.exe -sb "Build" -st "fail" -c "Red" -sl 0 
  demo2
C#
Edit|Remove
csharp
DotBadge.exe -sb "Star" -st "234" -c "#ddf" -sl 1 
DotBadge.exe -sb "Star" -st "234" -c "#ddf" -sl 1 
  demo3

How to integrate this project with your project

You can use nuget to ref the latest DotBadge assembly instead of leveraging the command line tool, run following command in the Package Manager Console:

Windows Shell Script
Edit|Remove
windowsshell
PM> Install-Package DotBadge
PM> Install-Package DotBadge

Sample

C#
Edit|Remove
csharp
using DotBadge;using System.IO;namespace Badge{    class Program    {        static void Main(string[] args)        {            var bp = new BadgePainter();            File.WriteAllText(@"C:\Users\peng\Desktop\nuget.svg", bp.DrawSVG("Badge", ".Net", ColorScheme.Red, Style.Flat));        }    }}
using DotBadge; using System.IO;  namespace Badge {     class Program     {         static void Main(string[] args)         {             var bp = new BadgePainter();             File.WriteAllText(@"C:\Users\peng\Desktop\nuget.svg", bp.DrawSVG("Badge", ".Net", ColorScheme.Red, Style.Flat));          }     } }
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft