Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support cascade NuGet.Config #31

Open
vpenades opened this issue Feb 5, 2020 · 1 comment
Open

support cascade NuGet.Config #31

vpenades opened this issue Feb 5, 2020 · 1 comment

Comments

@vpenades
Copy link

vpenades commented Feb 5, 2020

Right now, gpr uses the current user NuGet.Config by default and nothing else.

But this is not the expected behavior, as explained here.

Ideally, all tools using NuGet.Config files should behave in the same way, so developers can use any tool, irrespective of the developer strategy to define the NuGet.Config files.

Having specific behaviours for a given tool would mean that in order to use a given tool, you need to rearchitect the config files specifically for that tool, preventing the usage of other tools.

Now, given that all the ecosystem is open source, I am sure that somewhere, there's some code to evaluate the final state of multiple nuget.config files, based on the aforementioned link.

I think this package is the one that does the magic.

NuGet.Configuration.Settings.LoadDefaultSettings(...) seems to be the method to load and resolve Nuget.Config files in the same way nuget.exe does.

@brgrz
Copy link

brgrz commented Aug 17, 2020

Adding this would also support single nuget.config at the top of the solution tree (solution with many projects) which currently does not work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants