Can't install any NuGet Package if at least one Source is not available

前端 未结 2 1936
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-18 01:31

The following problem does not exist in VS2013 (Premium),I can only reproduce it in VS2015 (Enterprise)

I\'ve added a custom NuGet package source. If that source if

2条回答
  •  时光说笑
    2021-01-18 02:36

    This is by design. Since we support searching across multiple sources for the packages that you need, we need to be able to reach all sources and get the package results before restoring these packages, to be deterministic and consistent in the way we do restore.

    However, we understand that some users go into offline/online modes and we are investing in building a feature set that will enable you to temporarily disable some sources while you are working offline. In the meantime you can look into creating a custom nuget.config that does not contain the offending source and using that to restore when you are in the offline mode.

提交回复
热议问题