Utility script to generate texts using CSV data.
- read/parse CSV file data.
- generate text by the data.
- .NET Core 3.x / C# 8 (scripting) / T4 (Text Template Transformation Toolkit)
".NET Core SDK 3.x", "dotnet-script" and "dotnet-t4" are required.
If they are not installed on your machine, run setup.sh.
$ ./setup.sh
$ ./script.sh
- Edit template. (MyTemplate.tt)
Variables defined in MyData.cs and any C# code can be used in the template.
- Edit model definition. (MyData.cs)
- Edit parser. (MyDataParser.cs)
- Edit template. (MyTemplate.tt, MyTemplate.cs)
- Place mydata.csv of new format.
- Run.