MibCodeGenerator
The MibCodeGenerator is a tool that generates code for MibObjects (DataModel, DataMapping, Exception and ParserMapping).
Installation
Starting with MIB v5.0, MibCodeGenerator is now distributed as a dotnet tool, available as a NuGet packaging, which allows easier installation and update.
To install, you can run the following command in a terminal:
dotnet tool install -g MediaiBox.Tools.CodeGenerator --version 5.0.0
For more information about dotnet tool install, please check Microsoft's documentation here.
Updating
As with any other dotnet tool, updating to the newest version just requires running the following command:
dotnet tool update MediaiBox.Tools.CodeGenerator --version 5.0.1
A MibCodeGenerator that was installed to a specific path can also be updated using the correct path parameter.
For more information about dotnet tool update, please check Microsoft's documentation here.
Usage
You can invoke MibCodeGenerator from any command line/terminal, just run:
mibcodegenerator datamapping -fileName "<inputfile>" -outputFileName "<outputfile>" -configPath "<configpath>"