{"repo":"skbkontur/TypeScript.ContractGenerator","free":true,"listed":false,"github":"https://github.com/skbkontur/TypeScript.ContractGenerator","clone":"git clone https://github.com/skbkontur/TypeScript.ContractGenerator.git","description":"A tool that can generate TypeScript types from C# classes","language":"C#","stars":60,"topics":["typescript","csharp","code-generator","code-generation","roslyn"],"license":"MIT","category":"dev-tools","readme_excerpt":"TypeScript.ContractGenerator A tool that can generate TypeScript types from C# classes Build Status ------------------------------------- :--------------: TypeScript.ContractGenerator TypeScript.ContractGenerator.Roslyn TypeScript.ContractGenerator.Cli Build Release Notes See CHANGELOG. How to Use See https://github.com/skbkontur/TypeScript.ContractGenerator/wiki#how-to-use See Quick Start for more detailed guide Generation options See https://github.com/skbkontur/TypeScript.ContractGenerator/wiki/Generation-Options Attributes There is ContractGeneratorIgnore attribute that can be applied to properties and makes generator skip current property. Roslyn usage To use Roslyn you should get a Compilation object of your project. It can be done with helper method AdhocProject.GetCompilation(string[] directories, string[] assemblies) . You can then get customization info from this compilation by calling extension method compilation.GetCustomization() and call TypeScriptGenerator with this customization: dotnet tool usage Install tool with command: dotnet tool install -g SkbKontur.TypeScript.ContractGenerator.Cli Use tool with command: dotnet ts-gen --assembly ./Api/bin/Api.dll --outputDir ./src/Api dotnet tool also supports Roslyn: dotnet ts-gen --directory ./Api;./Core --assembly ./External/Dependency.dll --outputDir ./src/Api","default_branch":null,"files":null,"tree":[],"storefront":"/r/skbkontur","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/skbkontur/TypeScript.ContractGenerator/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}