FYI: generate C#/F# project from LinqPad Query
Options
https://github.com/wangzq/lpmake, written in PowerShell, supports queries using Nuget packages.