LINQPad - can you run a linqpad script from the command-line?

后端 未结 3 360
醉梦人生
醉梦人生 2021-01-18 00:27

Is there a way to run a LINQPad script from the command-prompt (no gui)?

If so, LINQPad would be handy for scripting C# and calling it from an automated build.

3条回答
  •  独厮守ぢ
    2021-01-18 01:21

    Yes, as of LINQPad v4.45.05:

    LINQPad.exe "c:\path\to\my\script.linq" -run

    To close the LINQPad window, be sure to call this at the end of your script:

    Process.GetCurrentProcess().CloseMainWindow();

提交回复
热议问题