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
@@ -3,6 +3,8 @@ Brute forcing conversion(translation) from C# to Javascript.
3
3
4
4
This is a personal project with purpose to learn and understand better c# and js at the same time. Many stuff is not supported and some won't. Updates will be happening when I'm using this library.(irregular)
*Nuget package will be available once I figure out ~how to do docs for api(should be easy) and what to do with esmascript and how to convert to c#.~ NUGET PACKAGE SOON!*
32
-
33
-
- Download a library(Code-Local-Download ZIP)
34
-
- Create c# project or use existed one
35
-
- 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
36
-
- In the Main method add:
33
+
- 1 Create c# project or use existed one
34
+
- 2 Install [nuget](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.
36
+
- 4 In the Main method add:
37
37
```csharp
38
38
Assemblyassembly=Assembly.GetExecutingAssembly();
39
39
CSTOJScstojs=new(assembly);
40
40
cstojs.Generate2Async("FULL PATH TO CSHARP FILE YOU WHAT TO CONVERT");
41
41
```
42
-
- Run program and file will be generated in output path(default is "Directory.GetCurrentDirectory()") with name "main.js"(default)
43
-
- See below for simple example "HelloWorld"
42
+
-5 Run program and file will be generated in output path(default is "Directory.GetCurrentDirectory()") with name "main.js"(default)
0 commit comments