估计有1个月了,在mac上编译dnx从来没有成功过,因为在安装nuget packages时连接myget.org总是超时。

NuGet v3 feed带来的惊喜

今天在 ASP.NET 5 Beta5 Now Available 中得知 dnx 已经支持 NuGet v3 feed,而且说"Restoring packages using the new NuGet v3 feed is significantly faster"。

于是将 dnx 中的 NuGet.Config 改为 v3 feed:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <packageSources>
    <add key="AspNetVNext" value="https://api.nuget.org/v3/index.json" />
    <add key="NuGet" value="https://api.nuget.org/v3/index.json" />
  </packageSources>
</configuration>

然后编译试了试,由于有些dnx所需的packages还没发布到NuGet v3 feed上,编译没有成功,但连接NuGet v3 feed的速度以及安装packages的速度比myget.org快多了。这个问题总算解决了。

相关文章:

  • 2022-01-28
  • 2021-09-27
  • 2022-01-10
  • 2021-10-25
  • 2021-04-14
  • 2021-11-16
  • 2021-05-01
猜你喜欢
  • 2022-01-28
  • 2021-05-06
  • 2022-12-23
  • 2021-04-24
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案