Ability to add references/nuget via comment/directives?
Internally we're starting to adopt the usage of a snippet manager for sharing snippets across our team. We have a fairly sizeable library currently of LinqPAD queries that we want to clean up and snippetize.
I appreciate how LinqPAD makes it easy to take "using" statements in pasted code and offers to move them to the query preferences. I was hoping that there'd be some similar functionality for adding references/nuget/dlls? I know in Azure Functions before they used the concept of
#r "Newtonsoft.Json" as a csx directive to install and use Newtonsoft.Json as an example I was hoping that something like that, would be available. Maybe even as a documentary comment:
/// <PackageReference name="Newtonsoft.Json" />
As an example. It'd be cool to see this be used for other references too - like absolute paths to dll's or fully qualified GAC assemblies.
Related to this - it'd be great to have a single "copy" command that would capture all of the usings, the references, and potentially a flag to set the query type/connection information, in a single text blob, that could then be used to reconfigure a new query with basically the same settings.
Does LinqPAD have support for any of these other features besides the using directive bit?