无法找到包 NETStandard.Library [英] Unable to find package NETStandard.Library

查看:31
本文介绍了无法找到包 NETStandard.Library的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试在 Visual Studio 2019 中添加一个新的类库(.Net Standard).但我得到 此错误消息:

I tried to add a new Class library(.Net Standard) in Visual studio 2019. But I get this error message:

无法找到包 NETStandard.Library.不存在包源代码中的此 ID:Microsoft Visual Studio 离线包.

Unable to find package NETStandard.Library. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages.

我还没有向这个文件添加任何代码.当我转到 NugetManager 时,我可以看到 此消息:

I haven't added any code to this file yet. When I go to NugetManager I can see this message:

NetStandard.Library 在此来源不可用

NetStandard.Library not available at this source

有人能帮我解决这个问题吗?

Can anyone please help me with this issue?

推荐答案

您在 Visual Studio 中的包源位于 Microsoft Visual Studio 离线包中.您应该转到包管理器设置(工具 > Nuget 包管理器 > 包管理器设置).
在包源部分输入
名称:nuget.org
来源:https://api.nuget.org/v3/index.json
将此包源添加到您的 Visual Studio,然后单击确定".

Your package source in visual studio is on the Microsoft Visual Studio Offline Packages. You should Go to Package Manager Settings (Tools > Nuget Package Manager > Package Manager Settings).
On the package sources section enter
Name : nuget.org
source :https://api.nuget.org/v3/index.json
add this package source to your visual studio and click ok.

这篇关于无法找到包 NETStandard.Library的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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