Skip to content

Commit 7b319e8

Browse files
authored
Update README.md
1 parent 1e46d1e commit 7b319e8

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ class Test
3030
```
3131

3232
## 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.
3636
- 4 In the Main method add:
3737
```csharp
3838
Assembly assembly = Assembly.GetExecutingAssembly();
3939
CSTOJS cstojs = new(assembly);
40-
await cstojs.Generate2Async("FULL PATH TO CSHARP FILE YOU WHAT TO CONVERT");
40+
await cstojs.GenerateAsync("FULL PATH TO CSHARP FILE YOU WHAT TO CONVERT");
4141
```
4242
- 5 Run program and file will be generated in output path(default is "Directory.GetCurrentDirectory()") with name "main.js"(default)
4343
- 6 See below for simple example "HelloWorld"
@@ -55,7 +55,7 @@ public class Program
5555
{
5656
Assembly executingAssembly = Assembly.GetExecutingAssembly();
5757
CSTOJS cstojs = new(executingAssembly);
58-
await cstojs.Generate2Async("C:\\GitReps\\ConsoleAppTest\\CSharp\\Test.cs");
58+
await cstojs.GenerateAsync("C:\\GitReps\\ConsoleAppTest\\CSharp\\Test.cs");
5959

6060
Console.ReadKey();
6161
}
@@ -87,9 +87,9 @@ class Test
8787
More examples [here](https://tilied.github.io/CSharpToJavaScript/articles/intro.html). WIP!
8888

8989
## 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!
9393
- [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!
9494

9595
## Related Repository

0 commit comments

Comments
 (0)