NuGet references missing from Query object model?
Hi,
If I load a LINQPad query file using the object model, as in
Thanks!
If I load a LINQPad query file using the object model, as in
LINQPad.ObjectModel.Query.Load(@"foo.linq")
, I noticed that the Query object doesn't list the NuGet references. However, these are there as elements when looking at source of the file. Is there another way to get those?Thanks!
Comments
GetRawHeader
method. It's fairly simple from there to get the NuGet references:LINQPad.ObjectModel.Query.Load(@"foo.linq").GetRawHeader().Elements("NuGetReference").Select(e => e.Value).Dump();
Example output:
In the meantime, GetRawHeader will return everything, as kingkeith suggested.
http://www.linqpad.net/download.aspx#beta