Visual Studio for Mac 2017-无法添加MVC nuget程序包 [英] Visual Studio for Mac 2017 - Can't add MVC nuget packages

查看:224
本文介绍了Visual Studio for Mac 2017-无法添加MVC nuget程序包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在Mac的Visual Studio中使用ASPNET Core模板创建了一个新项目.

I've created a new project using the ASPNET Core template in Visual Studio for Mac. 

我可以正常运行默认项目,

I can run the default project fine, but when I add reference to "Microsoft.AspNetCore.Mvc" or any of the other MVC related packages, they fail to install under OSX :( I get "failure has occurred while downloading a type" during the HTTP GET for most of the nuget packages when the restore happens (https://api.nuget.org/v3-flatcontainer/microsoft.extensions.caching.memory/1.1.0/microsoft.extensions.caching.memory.1.1.0.nupkg for example).

推荐答案

嗨Jayme Edwards,

Hi Jayme Edwards,

欢迎来到MSDN论坛.

Welcome to the MSDN forum.

请参阅您的描述,我尝试在本地重现此问题,我发现其中大多数软件包无法下载和安装,只有很少的软件包可以正常工作,请查看以下内容:

Refer to your description, I tried to reproduce this issue on my local and I found most of those packages cannot be downloaded and install, only little packages work fine, please have a look at the following:

我已将此问题报告给VS项目团队,请检查以下屏幕截图,然后我们需要等待VS产品团队工程师的反馈,对于由此带来的不便,我们深表歉意.

I have reported this issue to the VS project Team, please check the following screenshot, then we need to waiting for the feedback from the VS product team engineers, sorry for this inconvenience and thank you for your understanding.

最诚挚的问候,

萨拉


这篇关于Visual Studio for Mac 2017-无法添加MVC nuget程序包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆