是否有对所发生情况的解释?
这意味着当我使用Visual Basic设计网站并通过asp.net Web应用程序处理数据库时,在Visual Basic中安装软件包时,我遇到了以前图片中的错误,并且知道我去https://www.nuget.org页面请求安装NuGet.exe,但无法下载。问题是电脑还是公共的。
检索包元数据时发生错误。
我注意到Visual Studio 2015 NuGet Package Manager有更新到版本3.1.60724.766(当前为3.0.60624.657),因此我下载并安装了它。同样的错误。
修复方法:
在Visual Studio 2015中,
工具菜单-> NuGet Package Manager-> Package Manager Settings
点击Package Sources
点击 + 号
添加以下内容:
名称: 类似于 NuGet v2
来源: https://www.nuget.org/api/v2/
取消选中当前的 nuget.org,这样它应该看起来像: look like
现在,您应该能够安装 NuGet 包
&&
每个软件包的许可证都由其所有者授权给您。 Microsoft 不对第三方软件包负责,也不授予任何许可证。某些软件包可能包含受其他许可证管理的依赖项。请跟随软件包源(feed)URL 以确定任何依赖关系。软件包管理器控制台主机版本 3.0.0.0
键入“get-help NuGet”以查看所有可用的 NuGet 命令。
PM> get-help NuGet 主题 about_NuGet
简要说明 提供有关 NuGet 包管理器命令的信息。
详细说明 本主题描述了 NuGet 包管理器命令。NuGet 是一个集成的软件包管理工具,用于向 .NET 项目添加库和工具。
The following NuGet cmdlets are included.
Cmdlet Description
------------------ ----------------------------------------------
Find-Package Get the set of packages available from the package source,
based on the package Id/keyword. This is a new command that
will replace Get-Package -ListAvailable.
Get-Package Gets the set of installed packages. With -Updates switch,
gets the set of package updates available from the package source.
Install-Package Installs a package and its dependencies into the project.
Uninstall-Package Uninstalls a package. If other packages depend on this package,
the command will fail unless the –Force option is specified.
Update-Package Updates a package and its dependencies to a newer version.
Sync-Package Get the version of installed package from specified/default project
and sync the version to the rest of projects in the solution.
Add-BindingRedirect Examines all assemblies within the output path for a project
and adds binding redirects to the application (or web)
configuration file where necessary.
Get-Project Returns a reference to the DTE (Development Tools Environment)
for the specified project. If none is specifed, returns the
default project selected in the Package Manager Console.
Open-PackagePage Open the browser pointing to ProjectUrl, LicenseUrl or
ReportAbuseUrl of the specified package.
Register-TabExpansion Registers a tab expansion for the parameters of a command.
参见 在线文档: ht tp://g o .m icrosoft . com / fwlink /? LinkID=206619 Find-Package Get-Package Install-Package Uninstall-Package Update-Package Sync-Package Add-BindingRedirect Get-Project Open-PackagePage Register-TabExpansion PM>
所有这些,服务仍然无法工作