Visual Studio for Mac 2017

编程入门 行业动态 更新时间:2024-10-14 10:41:27
本文介绍了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.

我可以正常运行默认项目,但是当我添加对"Microsoft.AspNetCore.Mvc"的引用时或任何其他与MVC相关的 软件包,它们无法在OSX下安装:(还原时,大多数nuget软件包在HTTP GET期间都会收到在下载类型时发生故障"(api.nuget/v3-flatcontainer /microsoft.extensions.caching.memory/1.1.0/microsoft.extensions.caching.memory.1.1.0.nupkg 例如).

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 (api.nuget/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

本文发布于:2023-11-13 22:44:20,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1585526.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Studio   Visual   Mac

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!