This library is related to CSharpToJavaScript for generating c# files from webidl.
- 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");
-
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
CSharpToJavaScript library: https://github.com/TiLied/CSharpToJavaScript
- Library for generating docs: https://github.com/TiLied/GenDocsLib
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
- Blazor WebAssembly: https://github.com/TiLied/CSTOJS_BWA