Is there a way to configure NuGet to ignore unavailable package sources? -


when developing in visual studio 2017, use combination of standard nuget package source, , package sources company work for.

to access company package sources, have connect our company vpn.

unfortunately, means have always connected our company vpn, no matter i'm developing, because otherwise nuget gives me this:

exception 'system.aggregateexception' thrown when trying add source 'http://[one of company's package sources]'. please verify online package sources available. 1 or more errors occurred. unable load service index source http://[one of company's package sources]. error occurred while sending request. remote name not resolved: '[one of company's package sources]'

this make sense if i'm trying use package hosted on company's servers. if set package source dropdown nuget.org, error.

there's issue fix it, it's 2 years old , shows no signs of activity: install fails when nuget source unavailable when not selected source #2614

so, there way somehow configure nuget ignore missing package sources?


Comments

Popular posts from this blog

Sort a complex associative array in PHP -

vb.net - How to ignore if a cell is empty nothing -

recursion - Can every recursive algorithm be improved with dynamic programming? -