'Is there anyway we can automatically get generated Typescript classes from VB.net server side classes?

I am working on a web app project , VB.net is the server (API) language and frontend is written in Angular (typescript) , each time when a class model is created in the vb.net the same needs to be manually repeated in front end typescript , is there anyway we can get this generated in typescript automatically for frontend ?

I have given few try with typegen but it is only working with C#.



Solution 1:[1]

I'm the creator of TypeGen, I noticed there is some discussion in the comments of the original post regarding TypeGen, but unfortunately I don't have enough reputation to comment, so I'll post an answer instead.

TypeGen works by reading assemblies and it uses Reflection to get the information about the types and perform the translation to TypeScript.

The reason it's described as a "C# to TypeScript" generator (and not ".NET to TypeScript") is because it was only tested with C# - there might be some differences in how VB.NET code is compiled to IL, and since I'm not an expert on VB.NET, I decided it would be safer to name it a "C# to TypeScript" generator.

You can try to generate TypeScript sources from .NET assemblies created with VB.NET with TypeGen and it might work, but it just hasn't been tested this way.

I hope this can provide some clarification.

Thanks, Jacek

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Jacek Burzynski