Skip to content

TiLied/GenCSharpLib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GenCSharpLib

This library is related to CSharpToJavaScript for generating c# files from webidl.

How to use

  • Download idls from wpt/interfaces. See also: webref, wpt, reffy.
  • Convert webidl to json files using webidl2.js. This step requires a lot of manual editing, like deleting old versions.
  • Make sure to ignore "*.tentative.idl"!
  • Make sure that json starts with :
{
	"TType":...
}
  • Generate csharp file:
GenCSharp genCSharp = new();
await genCSharp.GenerateCSFromJson("FULL PATH TO JSON FILE", "FULL OUTPUT PATH");

Some Todos

  • Figure out why some methods did not get generated, like "CreateElement" in "Document".
  • Figure out how to get all standards from https://www.w3.org/TR/
  • Figure out what to do with esmascript and "if" how to generate c# files... Decided to do by hand, while using CSharpToJavaScript library, here

Related Repository

CSharpToJavaScript library: https://github.com/TiLied/CSharpToJavaScript

CLI for library: https://github.com/TiLied/CSTOJS_CLI

VS Code Extension using CLI: https://github.com/TiLied/CSTOJS_VSCode_Ext

VS Extension using CLI: https://github.com/TiLied/CSTOJS_VS_Ext

Website/documentation: https://github.com/TiLied/CSTOJS_Pages

Thanks for packages and content <3

webidl2.js

web-platform-tests

About

This library is related to CSharpToJavaScript for generating c# files.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages