简体   繁体   English

尝试安装任何 package 时出现 NuGet 错误

[英]I get NuGet error when trying to install any package

I'm making a Windows form progect in Visual Studio.我正在 Visual Studio 中制作 Windows 表单项目。 When I trying to install any package through console I get error当我尝试通过控制台安装任何 package 时出现错误

Install-Package: Unable to find package 'PackageName' at source ''.安装包:无法在源 '' 找到 package 'PackageName'。 I tried both Visual Studio 2013 and Visual Studio 2019.我尝试了 Visual Studio 2013 和 Visual Studio 2019。

When I go to Nuget Browse I get error as well.当我从 go 到 Nuget 浏览时,我也得到错误。 I don't see any packages我没有看到任何包裹

Maybe try to add -source "https://api.nuget.org/v3/index.json" behind?也许尝试在后面添加-source "https://api.nuget.org/v3/index.json"

According to your description, you can check your package scources under Tools > Options > NuGet Package Manager if you don't have the correct package sources you can add this “https://api.nuget.org/v3/index.json” such as: According to your description, you can check your package scources under Tools > Options > NuGet Package Manager if you don't have the correct package sources you can add this “https://api.nuget.org/v3/index.json”如: 在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 安装nuget软件包获取错误 - Install nuget package get error 当我尝试离线安装 nuget 包文件时,Visual Studio 2019 出现错误 - Visual studio 2019 giving error when I try to install nuget package file offline 尝试在新解决方案中启用NuGet包还原时出错 - Error when trying to enable NuGet Package Restore in new Solution Visual Studio Nuget无法安装任何软件包 - Visual Studio Nuget unable to install any package 尝试以编程方式安装NuGet软件包-Package.GetGlobalService返回null - Trying to install NuGet package programmatically - Package.GetGlobalService returns null 安装Nuget Package错误“​​路径不是合法形式” - Install Nuget Package error “The path is not of a legal form” NuGet包恢复已启用但我收到错误,说它未启用 - NuGet Package restore IS enabled but I get an error saying it's not enabled 如何使用 xmldocument 安装 nuget package - How can i install a nuget package with xmldocument NuGet错误。 无论我尝试安装什么软件包,“软件包还原失败。回滚更改……” - NuGet error. “Package restore failedd.Rolling back changes for …”, no matter what package I try to install 尝试更新时NuGet Package Manager出错 - NuGet Package Manager errors when trying to update
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM