【发布时间】:2016-02-10 14:21:26
【问题描述】:
检索包元数据时出错 来自源“nuget.org”的“bootstrap.3.3.5”。 ==========完成==========
问题出在哪里,网站 nuget.org 可能会崩溃,或者问题是否出在本地。我在 Windows 上使用 Visual Basic。当他希望下载实体框架包时,缺陷就开始了,但他不接受从官网包下载nuget。
对正在发生的事情有解释吗?
这意味着当我使用 Visual Basic 设计站点并通过 asp.net Web 应用程序处理数据库时,当我通过 Visual Basic 中的附加 nuget 安装包时,我遇到了上一张图片中的错误并且知道我走了到页面 https://www.nuget.org 询问安装 NuGet 。 exe不接受下载意图是电脑的问题还是对所有人公开。
检索包元数据时出错
我注意到 Visual Studio 2015 NuGet Package Manage for Visual Studio 有更新到版本 3.1.60724.766(从当前的 3.0.60624.657),所以我下载并安装了它。同样的错误。
修复
在 Visual Studio 2015 中。
工具菜单 -> NuGet 包管理器 -> 包管理器设置
点击包源
点击+签名
添加以下内容:
名称:类似于 NuGet v2
来源:https://www.nuget.org/api/v2/
取消选中当前的 nuget.org,使其看起来像: look like
现在你应该可以安装 NuGet 包了
&&
每个包都由其所有者授权给您。 Microsoft 不对第三方包负责,也不向其授予任何许可。某些软件包可能包含受附加许可证管理的依赖项。按照包源(提要)URL 确定任何依赖项。
包管理器控制台主机版本 3.0.0.0
键入“get-help NuGet”以查看所有可用的 NuGet 命令。
PM> 获取帮助 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/?链接 ID=206619 查找包 获取包 安装包 卸载包 更新包 同步包 添加绑定重定向 获取项目 打开包页 Register-TabExpansion 下午>
所有这些,但服务仍然不起作用
【问题讨论】:
-
欢迎来到 Stack Overflow。我已经解决了你的帖子的英语问题。请检查这是否是您要说的。我还内嵌了图片。
-
感谢 Rohit 的支持,这意味着当我使用 Visual Basic 设计网站并通过 asp.net Web 应用程序处理数据库时,当我通过 Visual Basic 中的附加 nuget 安装包时,我有上图中的错误,知道我去页面nuget.org问安装NuGet.exe不接受下载意图是计算机的问题还是对所有人公开。我希望我已经成功地解释了这个问题。
标签: package entity nuget metadata