File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ This is a personal project with purpose to learn and understand better c# and js
66[ Nuget package] ( https://www.nuget.org/packages/CSharpToJavaScript/ )
77
88### C#
9- ``` csharp
9+ ``` csharp
1010using static CSharpToJavaScript .APIs .JS .GlobalThis ;
1111namespace ConsoleAppTest .CSharp ;
1212
@@ -51,7 +51,7 @@ namespace ConsoleAppTest;
5151
5252public class Program
5353{
54- public static void Main ()
54+ public static async Task Main ()
5555 {
5656 Assembly executingAssembly = Assembly .GetExecutingAssembly ();
5757
@@ -66,7 +66,8 @@ public class Program
6666 };
6767
6868 CSTOJS cstojs = new (executingAssembly , opt );
69- cstojs .Generate2Async (" C:\\ GitReps\\ ConsoleAppTest\\ CSharp\\ test.cs" );
69+ await cstojs .Generate2Async (" C:\\ GitReps\\ ConsoleAppTest\\ CSharp\\ test.cs" );
70+
7071 Console .ReadKey ();
7172 }
7273}
You can’t perform that action at this time.
0 commit comments