You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,14 +30,14 @@ class Test
30
30
```
31
31
32
32
## How to use
33
-
- 1 Create c# project or use existed one
34
-
- 2 Install [nuget package](https://www.nuget.org/packages/CSharpToJavaScript/) or Download a specific version(visit [releases](https://github.com/TiLied/CSharpToJavaScript/releases)) or Download a master(Code-Local-Download ZIP)
35
-
- 3 Skip this if using Nuget package. Follow [this](https://learn.microsoft.com/en-us/dotnet/core/tutorials/library-with-visual-studio?pivots=dotnet-7-0#add-a-project-reference) to add reference to project.
33
+
- 1 Create c# project or use existed one.
34
+
- 2 Install [nuget package](https://www.nuget.org/packages/CSharpToJavaScript/) or Download a specific version(visit [releases](https://github.com/TiLied/CSharpToJavaScript/releases)) or Download a master(Code-Local-Download ZIP).
35
+
- 3 Skip this if using Nuget package. Follow [this](https://learn.microsoft.com/en-us/dotnet/core/tutorials/library-with-visual-studio?pivots=dotnet-7-0#add-a-project-reference) to add reference to the project.
36
36
- 4 In the Main method add:
37
37
```csharp
38
38
Assemblyassembly=Assembly.GetExecutingAssembly();
39
39
CSTOJScstojs=new(assembly);
40
-
awaitcstojs.Generate2Async("FULL PATH TO CSHARP FILE YOU WHAT TO CONVERT");
40
+
awaitcstojs.GenerateAsync("FULL PATH TO CSHARP FILE YOU WHAT TO CONVERT");
41
41
```
42
42
- 5 Run program and file will be generated in output path(default is "Directory.GetCurrentDirectory()") with name "main.js"(default)
More examples [here](https://tilied.github.io/CSharpToJavaScript/articles/intro.html). WIP!
88
88
89
89
## Some Todos
90
-
-[ ]More comments in code, especially in [CSTOJSOptions](https://github.com/TiLied/CSharpToJavaScript/blob/master/CSharpToJavaScript/CSTOJSOptions.cs)
91
-
-[ ] Wiki?
92
-
-[ ]Better and more examples
90
+
-[x]~More comments in code, especially in [CSTOJSOptions](https://github.com/TiLied/CSharpToJavaScript/blob/master/CSharpToJavaScript/CSTOJSOptions.cs)~
91
+
-[ ] Wiki???
92
+
-[x]~Better and more examples~[Here](https://tilied.github.io/CSharpToJavaScript/articles/intro.html). WIP!
93
93
-[x]~Figure out how to do docs for [api](https://github.com/TiLied/CSharpToJavaScript/tree/master/CSharpToJavaScript/APIs/JS)~[Docs](https://tilied.github.io/CSharpToJavaScript/) WIP!
0 commit comments