Rosetta.ScriptSharp.Definition.BuildTask

Build task for definitions.


Keywords
csharp, typescript, scriptsharp, definition-files, compiled-translations, definition, javascript, roslyn
License
GPL-3.0
Install
Install-Package Rosetta.ScriptSharp.Definition.BuildTask -Version 1.0.0-beta

Documentation

Rosetta

Build Status

C# to TypeScript via Roslyn

Overview

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 yourr 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.

How it works

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 accordingly to syntax structures encountered during the tree walking.

Requirements

Rosetta relies can be executed on the following platforms:

  • Windows

Rosetta depends on:

  • The .NET Framework 4.0+.
  • Project Roslyn.