RSS Feed for This PostCurrent Article

Recompile .NET Assembly to Javascript, Java, PHP

jsc is a decompiler or a cross compiler if you will. It is not a source-code parser nor an IDE. It is a command line utility like any other compiler. jsc was originally an anagram for csharp to javascript.

The compiler extracts CIL from a .net assembly. It filters out the classes which are marked with the ScriptAttribute. It selects the target language and emits the source.

Each assembly defines which namespaces will be filtered in. Each class in these namespaces must define ScriptAttribute, to be opt-in for jsc compilation. Therefore, previously built assamblies will not be processed.


Trackback URL

Sorry, comments for this entry are closed at this time.