marianban / format-converter-demo

simple c# example app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Format Converter CLI

Simple CLI app for converting one format to another.

--sourceType (Default: File) Data Source Type (File)
-s, --source Required. Data Source (file path)
-f, --sourceFormat Required. Source Format (Json, Xml)
--sourceType (Default: File) Data Destination Type (File)
-d, --destination Required. Data Destination (file path)
-o, --destinationFormat Required. Destination Format (Json, Xml)
--help Display this help screen.
--version Display version information.

Usage:

  • build the CLI converter
  • go to FormatConverter.CLI\bin\Debug\netcoreapp3.1
  • run: FormatConverter.CLI.exe -s ./document.json -f Json -o Xml -d ./out.xml
    document.json and document.xml are already available in the output dir

Open points

  • better error handling and resiliency

Original solution

  • Homework.cs - contains inline comments for code issues

About

simple c# example app


Languages

Language:C# 100.0%