EnumGenerator.Cli
5.0.1274
dotnet add package EnumGenerator.Cli --version 5.0.1274
NuGet\Install-Package EnumGenerator.Cli -Version 5.0.1274
<PackageReference Include="EnumGenerator.Cli" Version="5.0.1274" />
<PackageVersion Include="EnumGenerator.Cli" Version="5.0.1274" />
<PackageReference Include="EnumGenerator.Cli" />
paket add EnumGenerator.Cli --version 5.0.1274
#r "nuget: EnumGenerator.Cli, 5.0.1274"
#:package EnumGenerator.Cli@5.0.1274
#addin nuget:?package=EnumGenerator.Cli&version=5.0.1274
#tool nuget:?package=EnumGenerator.Cli&version=5.0.1274
EnumGenerator Cli tool.
Can be used to generate c# / f# / vb / cil enum files from json files.
Installation
Add a reference to the cli-tool to a ItemGroup section your of your csproj.
<DotNetCliToolReference Include="EnumGenerator.Cli" Version="5.0.*" />
Usage
There two ways to invoke the tool:
- Manually execute
dotnet enum-generatorfrom a command prompt. - Add a pre-build step to your csproj file: (Outside of a
ItemGrouporPropertyGroup)
<Target Name="GenerateEnum" BeforeTargets="BeforeBuild">
<Exec Command="dotnet enum-generator \
-i example.json \
-o example.g.cs"/>
</Target>
To generate a fsharp file use the -t fsharp argument.
To generate a vb file use the -t visualbasic argument.
To generate a cil file use the -t cil argument.
To generate a dll file use the -t classlibrary argument.
Help
For additional info on the arguments run dotnet enum-generator --help
For more general documentation and examples visit the github project enum-generator-dotnet.
Learn more about Target Frameworks and .NET Standard.
-
.NETCoreApp 2.2
- CommandLineParser (>= 2.4.3)
- EnumGenerator.Core (>= 5.0.1274)
- Microsoft.Extensions.DependencyInjection (>= 2.2.0)
- Microsoft.Extensions.Logging (>= 2.2.0)
- Microsoft.NETCore.App (>= 2.2.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 5.0.1274 | 1,246 | 11/27/2019 |
| 4.1.1229 | 1,638 | 8/19/2019 |
| 4.0.1221 | 1,093 | 8/16/2019 |
| 3.5.1217 | 1,222 | 8/10/2019 |
| 3.5.1214 | 1,164 | 8/10/2019 |
| 3.4.1211 | 1,139 | 8/9/2019 |
| 3.4.1206 | 1,204 | 8/9/2019 |
| 3.3.1203 | 1,148 | 8/8/2019 |
| 3.2.1196 | 1,218 | 8/7/2019 |
| 3.2.1193 | 1,204 | 8/7/2019 |
| 3.1.1190 | 1,167 | 8/7/2019 |
| 3.0.1187 | 1,180 | 8/7/2019 |
| 2.1.1008 | 1,135 | 7/6/2019 |
| 2.0.1004 | 1,180 | 7/6/2019 |
| 1.0.931 | 1,413 | 5/4/2019 |