.linq file using NugetReference from private/on-premise package repository?

edited July 3
Is it possible to embed private package repository paths in a .linq file?

I'm trying to create a portable .linq file that contains embedded links to a private repository set up in our company. Many people in the company use LINQPad4 but do not have our relatively new NuGet repository listed in their %AppData%\LINQPad\NuGetSources.xml. As such when they open a .linq file with something like this at the top:

<Query Kind="Program"> <NuGetReference>MyCompany.OurPackageName</NuGetReference> <Namespace>MyCompany.OurPackageName</Namespace> </Query>

and they open it to run they then see the following sequence:
image
"This query requires the following NuGet packages: MyCompany.OurPackageName Download?"

and clicking "yes":
image
"Error downloading 'MyCompany.OurPackageName' - Unable to find package 'MyCompany.OurPackageName' OK"

I'm imagining something like this would be helpful here:
<Query Kind="Program"> <NuGetSource>\\mycompany\NuGet\packages</NuGetSource> <NuGetReference>MyCompany.OurPackageName</NuGetReference> <Namespace>MyCompany.OurPackageName</Namespace> </Query>
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!