The workaround is to create your own program that runs it in the background for you, for example, csws.exe.
Start by creating a console application.
public static void Main(string[] args) { var startInfo = new ProcessStartInfo("path to csi.exe") { CreateNoWindow = true, Arguments = args[1], RedirectStandardOutput = true, UseShellExecute = false, }; Process.Start(startInfo); }
(You will obviously want to pass the rest of the arguments and check that the file has been transferred, etc., but this should help get you started. And I wrote this answer on my Mac, since my Windows box is in the store, so I donβt I can guarantee that this will work.)
Then the console application does not display the window, changing it to a Windows application from the Console application on the project properties screen, as described in this question .
Finally, configure the .csx files that will always open with your application. Then you can double click on them and they will work without a window.
mason
source share