Important At the moment the project is dead. Should you be interested in the code, please fork this repository.
Toolset for migrating your codebase from C# to TypeScript.
Status: Work in progress
Rosetta is a project for converting C# code into TypeScript. I do this by means of project Roslyn. Rosetta is also a toolset for providing help while converting your codebase to TypeScript. The overall solution includes the following tools:
- Rosetta The transpiler to convert ScriptSharp C# code into TypeScript.
- Rosetta ScriptSharp Definition Generator A tool to generate TypeScript definition files out of your ScriptSharp C# codebase.
Rosetta is written in C# and performs syntax analysis of C# code in order to convert it into TypeScript. There are many applications, however Rosetta is developed with those specific ones as targets:
- Providing a tool for converting c#-to-javascript (like ScriptSharp) codebases into TypeScript.
- Providing a tool for converting C# codebases into TypeScript.
- Providing tools for migrating C#-based codebases into TypeScript.
The translation works by traversing the C# AST generated via Roslyn and generating output according to syntax structures encountered during the tree walking.
Rosetta can be executed on the following platforms:
- Windows
Current supported development environments are:
- Visual Studio 2015
Rosetta depends on:
- .NET Framework 4.0+.
- Project Roslyn.
Rosetta ScriptSharp Definition Generator depends on:
- .NET Framework 4.0+.
- Project Roslyn (definition generation via file).
- Project Mono.Cecil (definition generation via assembly).