最近在家中用使用VS编译项目时,Nuget包一直下载不了,直接在浏览器中访问https://api.nuget.org/v3/index.json ,浏览器也打不开网址。把https协议改成http协议,浏览器可以打开了,然后就在VS设置Nuget包管理器中添加了http的程序包源,添加后再次编译,还是下载不了。后来发现http://api.nuget.org/v3/index.json返回结果中,resoure的地址还是https协议,所以下载时还是请求https的。

  

  如果能把Https协议自动转Http就好 了!!!!!!!

 

  Fiddler神器出现了!配置AutoResposnder,添加一条规则:

  regex:(?inx)^https://api.nuget.org/(?<name>.+)$

  *redir:http://api.nuget.org/${name}

 

解决Nuget:https://api.nuget.org/v3/index.json 访问不了的问题

相关文章:

  • 2022-02-26
  • 2021-10-06
  • 2022-12-23
  • 2021-12-05
  • 2021-12-17
  • 2022-12-23
  • 2022-01-06
猜你喜欢
  • 2022-12-23
  • 2022-02-15
  • 2022-01-29
  • 2022-12-23
  • 2021-12-06
相关资源
相似解决方案