A simple, but very powerful, command-line parsing utility that automatically populates properties in your argument object. Handles data type conversions and data validation. Provides help text optimized for the console. See the project WIKI on Git for full list of features and documentation.
BizArk , command-line , parsing , command-line-parsing , console , utility
Install-Package BizArk.ConsoleApp -Version 18.104.22.168
BizArk provides a collection of tools to make building line-of-business applications easier.
All BizArk 3 projects have been updated to use .Net Standard 2.0. This update caused the project to lose the FontUtil class and ClickOnce support, but these were minor features that were deemed worth losing to gain support for .Net Standard.
This is the 3rd version of BizArk. Although much of the code was ported from v2, not all of it was and some of it has changed so if you are coming from v2, you might need to make changes to your code. In particular, the command-line parsing was moved into its own project, ConvertEx has been refactored and improved, WebHelper has been removed, and the database utilities have also been removed. If the WebHelper or database utilites were useful to you and you think they should be ported to v3, please leave a comment and we'll consider it.
BizArk is probably most popular for the Command-Line Parser. It provides a simple way of getting strongly typed arguments from command-line arguments. The BaCon engine (standing for BizArk Console) also supports some other very handy features for console applications such as wrapping strings at word boundaries, simple colored text, automatic help (when used with the Command-Line Parser), and much more.
If you have a need for data type conversions, look no further than ConvertEx. If it is possible to convert one type to another, ConvertEx can probably do it. It makes use of all the different built-in ways to convert types and also can handle common conventions.
C# 6 provides us with string interpolation which is great, but it only works on literal strings since it is parsed at compile time. BizArk provides string templating to support very similar syntax for non-literal strings.
BizArk provides many convenient utilities to make everyday things easier. This includes an Application object for easy access to useful information about the environment, help with strings, xml, images, etc.
BizArk is available as a NuGet package.
BizArk.Core - Core libraries and features.
BizArk.ConsoleApp - Get the BizArk Command-Line Parser and the other console utilities.
BizArk.Data.SqlServer - Provides some convenient utilities for working with Sql Server databases without an ORM.