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: src/Dotnet.Script/Program.cs
+87-1Lines changed: 87 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -59,7 +59,7 @@ private static int Wain(string[] args)
59
59
varinteractive=app.Option("-i | --interactive","Execute a script and drop into the interactive mode afterwards.",CommandOptionType.NoValue);
60
60
61
61
varconfiguration=app.Option("-c | --configuration <configuration>","Configuration to use for running the script [Release/Debug] Default is \"Debug\"",CommandOptionType.SingleValue);
@@ -86,6 +86,44 @@ private static int Wain(string[] args)
86
86
});
87
87
});
88
88
89
+
app.Command("compile", c =>
90
+
{
91
+
c.Description="Compile a script into a DLL.";
92
+
varscriptPath=c.Argument("script","Path to CSX script");
93
+
varoutputDll=c.Option("-o |--output <path>","Path to which the file should be output. Defaults to <scriptName>.dll in current directory.",CommandOptionType.SingleValue);
0 commit comments