Skip to content

Add support for NUGET_PACKAGES env var#110

Merged
JohannesHoppe merged 2 commits into
Mongo2Go:masterfrom
bastianeicher:patch-1
Mar 27, 2021
Merged

Add support for NUGET_PACKAGES env var#110
JohannesHoppe merged 2 commits into
Mongo2Go:masterfrom
bastianeicher:patch-1

Conversation

@bastianeicher
Copy link
Copy Markdown
Contributor

This adds support for the environment variable NUGET_PACKAGES, which changes the location of the NuGet package cache.
Reference: https://docs.microsoft.com/en-us/nuget/reference/cli-reference/cli-ref-environment-variables

I also slightly changed the control flow in the MongoBinaryLocator constructor to ensure ensure that _nugetCacheDirectory is not null even when searchPatternOverride is specified.

Also ensure _nugetCacheDirectory is set even when searchPatternOverride is specified.
@JohannesHoppe
Copy link
Copy Markdown
Member

This looks absolutely fine, I will be releasing this in the near future along with #109. Thanks a lot for your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants