CSharpToTypescript2 1.1.7

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

Install-Package CSharpToTypescript2 -Version 1.1.7
dotnet add package CSharpToTypescript2 --version 1.1.7
<PackageReference Include="CSharpToTypescript2" Version="1.1.7" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CSharpToTypescript2 --version 1.1.7
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: CSharpToTypescript2, 1.1.7"
For F# scripts that support #r syntax, copy this into the source code to reference the package.

Release Notes

Clean up of line endings. Previously there was a mess of "\r\n"s and "\n"s. Replaced it with Environment.NewLine. Version 2 of the fix.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.1.7 380 8/14/2020
1.1.6 116 8/13/2020
1.1.5 132 7/15/2020
1.1.4 183 3/18/2020
1.1.3 468 11/10/2019
1.1.2 159 11/10/2019
1.1.0 161 11/10/2019
0.7.2 171 10/27/2019
0.7.1 169 10/26/2019
0.7.0 177 10/26/2019