Give option to generate EXE
It would be nice to be able to fine tune my query then click "make EXE". An executable would be produced that just ran the query and showed the Dump results as if I had run it directly in LINQPad. A more advanced option would be to allow some simple parameters to be passed and used in the query. This way I could write some simple reporting queries and then give them to someone else or add shortcuts to easily run them again myself.
Andrew McClenaghan commented
Would love the ability to embed this into a web project. Easy way to give our end users custom reusable scripts.
Daniel Rubin commented
Lprun only handles some of the usecases which this suggestion would enable. It doesn't allow (as Franklin Ross suggested) creating a *distributable* exe file.
https://linqpad.uservoice.com/forums/18302-linqpad-feature-suggestions/suggestions/1520279-ability-to-save-a-compiled-linqpad-script-to-an-ex was suggested to be a duplicate of this, but if lprun is considered to be "sufficient" to close this, then that feature will still be unaddressed.
Agreed with Keith - with recent versions, using lprun.exe seems like it's sufficient to cover this use case, and we can/should close this.
Keith Hall commented
why not just use lprun? http://www.linqpad.net/lprun.aspx
Franklin Ross commented
This would be great! I've been thinking about this for a while because I pretty frequently write little LINQPad scripts for pulling some data out of a few files or a DB for a non-tech. Being able to create an exe that I can give them to run themselves would be great.
I'm currently seeing how I go writing a mini UI library for easily prompting the user for some inputs in a LINQPady kind of way, like 2 file open dialogs for instance (or whatever). Ideally the same exe would be able to parse command line arguments for the inputs too. We'll see how I go (I just started), but this suggestion would complete that whole thought into a quick tool creator.
Josh Schwartzberg commented
Snippet compiler can do this, one of the few things holding me back from switch completely to linqpad
I would love to be able to say write a quick XML parse script, and then generate an exe that i could drag and drop xml files onto and it would run use the code to parse the xml and output whatever.
Making small tools like that in a new project in VS.Net is a pain.