LINQPad script directory?
Does anyone know how to get hold of the path to the directory where the LINQPad script file (.linq) resides? Or to the script itself for that matter. Note that I'm not talking about the location of the "My Queries" folder, the one shown inside LINQPad. I can save a .linq file anywhere on disk, and open it by double-clicking on it. For instance, if I save the file to C:\Temp\Test.linq , and execute the program, I'd like to have either C:\Temp or C:\Temp\Test.linq . Basically I'd like something akin to Environment.CurrentDirectory or Assembly.GetEntryAssembly().Location , just for the .linq file