GenItEasy.Core 0.1.3-alpha

This is a prerelease version of GenItEasy.Core.
dotnet add package GenItEasy.Core --version 0.1.3-alpha
                    
NuGet\Install-Package GenItEasy.Core -Version 0.1.3-alpha
                    
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="GenItEasy.Core" Version="0.1.3-alpha" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="GenItEasy.Core" Version="0.1.3-alpha" />
                    
Directory.Packages.props
<PackageReference Include="GenItEasy.Core" />
                    
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 GenItEasy.Core --version 0.1.3-alpha
                    
#r "nuget: GenItEasy.Core, 0.1.3-alpha"
                    
#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 GenItEasy.Core@0.1.3-alpha
                    
#: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=GenItEasy.Core&version=0.1.3-alpha&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=GenItEasy.Core&version=0.1.3-alpha&prerelease
                    
Install as a Cake Tool

GenItEasy

A .NET library and CLI tool for generating TypeScript type definitions from C# assemblies.

Installation

As a Library

dotnet add package GenItEasy.Core

As a CLI Tool

dotnet tool install GenItEasy.CLI

Quick Start

1. Create a configuration file

Create typescriptgenconfig.json:

{
  "assemblyName": "MyApp.Models",
  "outputPath": "../ClientApp/src/types",
  "outputFileName": "models.gen.ts",
  "namespaces": [
    {
      "namespace": "MyApp.Models.Dtos"
    }
  ]
}

2. Run the generator

CLI:

genit typescriptgenconfig.json --base-directory bin/Debug/net9.0

Library:

using GenItEasy;
using GenItEasy.Utilities;

var config = ConfigLoader.LoadConfig("typescriptgenconfig.json");
var generator = new TypeScriptGenerator(config);
generator.Generate();

MSBuild (auto-generate on build):

<Target Name="GenerateTypeScript" AfterTargets="Build">
  <Exec Command="genit typescriptgenconfig.json --base-directory $(TargetDir)" />
</Target>

Documentation

For comprehensive documentation, see:

  • User Guide - Complete configuration options, type mappings, filtering patterns, examples, and troubleshooting
  • Examples - C# to TypeScript transformation examples
  • Architecture - Project structure and component design

Key Features

  • Configurable namespace filtering with include/exclude patterns
  • Support for generic types, tuples, collections, and dictionaries
  • Multiple enum styles: Numeric, String, or StringLiteral
  • Optional namespace consolidation via outputNamespace
  • Automatic I prefix for interfaces, camelCase property conversion
  • Nullable type support (T?T | null)

Dependencies

  • Microsoft.Extensions.Logging.Abstractions - Optional logging interface
  • .NET 8.0, 9.0, 10.0 - Multi-targeting support
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in 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
0.1.3-alpha 31 1/27/2026