EnumGenerator.Cli 5.0.1274

dotnet add package EnumGenerator.Cli --version 5.0.1274
                    
NuGet\Install-Package EnumGenerator.Cli -Version 5.0.1274
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="EnumGenerator.Cli" Version="5.0.1274" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="EnumGenerator.Cli" Version="5.0.1274" />
                    
Directory.Packages.props
<PackageReference Include="EnumGenerator.Cli" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add EnumGenerator.Cli --version 5.0.1274
                    
#r "nuget: EnumGenerator.Cli, 5.0.1274"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package EnumGenerator.Cli@5.0.1274
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=EnumGenerator.Cli&version=5.0.1274
                    
Install as a Cake Addin
#tool nuget:?package=EnumGenerator.Cli&version=5.0.1274
                    
Install as a Cake Tool

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:

  1. Manually execute dotnet enum-generator from a command prompt.
  2. Add a pre-build step to your csproj file: (Outside of a ItemGroup or PropertyGroup)
<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.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

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
Loading failed