CSharpToTypescript2 1.1.8

.NET Core 2.2
Install-Package CSharpToTypescript2 -Version 1.1.8
dotnet add package CSharpToTypescript2 --version 1.1.8
<PackageReference Include="CSharpToTypescript2" Version="1.1.8" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CSharpToTypescript2 --version 1.1.8
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: CSharpToTypescript2, 1.1.8"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install CSharpToTypescript2 as a Cake Addin
#addin nuget:?package=CSharpToTypescript2&version=1.1.8

// Install CSharpToTypescript2 as a Cake Tool
#tool nuget:?package=CSharpToTypescript2&version=1.1.8
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Transpiles dto.cs files into dto.ts files. Including simple calcualtions.
It is based on Roslyn. So, potentially can transpile code of any complexity but currently intended (and tested) only for simple data transfer classes and simple calculations.
It is compatible with dotnet cli and dotnet watch in particular.
As input takes:
1. List of input folders with cs files (your dtos)
2. Output folder
and some other things. See example configuration file.
While the tool is the best of  C#  to Typescript generators I have seen (TypeLite, Typewriter, etc) it does not produce self sufficient set of dto files. The initial setup is more complex than of mentioned tools in exchange of much greater flexebility.
I will try to provide enough information for it to use but it may be not sufficient. In such a case please consult the working example with the transpiler integrated here: https://github.com/alehro/AspNetCoreSpa
Since the transpiler by itself doesn't have public repo please feel free to post its issues to the demo SPA project: https://github.com/alehro/AspNetCoreSpa/issues
The setup documentation is currently attached to version 1.1.2 here: CSharpToTypescript2/1.1.2
Or the same:  https://github.com/alehro/AspNetCoreSpa/blob/master/README_Cs2Ts.md

Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
Compatible target framework(s)
Additional computed target framework(s)
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
1.1.8 116 12/21/2021
1.1.7 1,688 8/14/2020
1.1.6 237 8/13/2020
1.1.5 238 7/15/2020
1.1.4 291 3/18/2020
1.1.3 797 11/10/2019
1.1.2 269 11/10/2019
1.1.0 272 11/10/2019
0.7.2 273 10/27/2019
0.7.1 284 10/26/2019
0.7.0 285 10/26/2019

Dependency on enum in different file was not resolving - fixed