C# port of Shields-style badge library.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
DotBadge.CommandLine Add Standalone command line Apr 27, 2015
DotBadge Fix tabs inside xml. Oct 7, 2015
.gitignore It works Apr 25, 2015
DotBadge.sln Add Standalone command line Apr 27, 2015
Readme.md Update Readme.md May 4, 2015

Readme.md

C# port of Shields-style badge library and CLI DotBadge

CLI

Download

Invoke your commandline shell, and run DotBadge.exe --help.

Sample

DotBadge.exe -sb "Downloads" -st "1000" -c "Green" -sl 0 demo1

DotBadge.exe -sb "Build" -st "fail" -c "Red" -sl 0 demo2

DotBadge.exe -sbhttps://github.com/rebornix/DotBadge/edit/master/Readme.md# "Star" -st "234" -c "#ddf" -sl 1 demo3

Nuget package

To integrate the latest DotBadge with your project, run following command in the Package Manager Console:

PM> Install-Package DotBadge

Sample

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));

        }
    }
}