You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Our build system blocks access to particular NuGet sources. We have our own trusted server that we use. Therefore, the hard-coded DefaultSources list in SourceRepositoryProvider.cs presents a problem when trying to generate documentation. There seems to be no way to opt out of using "https://api.nuget.org/v3/index.json".
Can this hard-coded value be removed, please?
Either that, or provide a way to disable it?
I would think that if a user specifies, in there WyamSettings:
NuGetSources = new List<string>() {"https://mytrustednuget/"},
UseGlobalSources = false,
that only that specified source should be used. If those particular settings are not specified, then it should use the sources configured in the user's\machine's NuGet Settings.
Could you please make this edit? Or, I could submit it if you wish. I intend to do nothing more than comment that line out.
Thanks.
The text was updated successfully, but these errors were encountered:
There are build systems that block access to "outside" NuGet sources.
Therefore, the hard-coded DefaultSources list in
SourceRepositoryProvider.cs presents a problem when trying to generate
documentation. There seems to be no way to opt out of using
"https://api.nuget.org/v3/index.json".
This fix removes this hard-coded value and leaves the decision to the
user via their NuGet.config setup or their WyamSettings specifications
(setting of NugetSources and UseGlobalSources).
Sorry it took so long to get to this issue. Pretty sure it's the same as #673 (and even if it's not, the fix I added for that one should definitely resolve this one).
In the next version you'll be able to do the following, which will hopefully resolve your issues:
If it doesn't please do circle back around and we'll reopen this issue.
FWIW, Wyam is dropping all direct NuGet support in the forthcoming 2.x release (see #668). That's not to say NuGet packages won't still be involved, just that Wyam will no longer be responsible for handling their installation - MSBuild will do that going forward.
Our build system blocks access to particular NuGet sources. We have our own trusted server that we use. Therefore, the hard-coded DefaultSources list in SourceRepositoryProvider.cs presents a problem when trying to generate documentation. There seems to be no way to opt out of using "https://api.nuget.org/v3/index.json".
Can this hard-coded value be removed, please?
Either that, or provide a way to disable it?
I would think that if a user specifies, in there WyamSettings:
that only that specified source should be used. If those particular settings are not specified, then it should use the sources configured in the user's\machine's NuGet Settings.
Could you please make this edit? Or, I could submit it if you wish. I intend to do nothing more than comment that line out.
Thanks.
The text was updated successfully, but these errors were encountered: