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