问题标签 [nugetgallery]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
63 浏览

c# - 依赖程序集,检查兼容性

我正在将一个项目从 .net 框架转换为 .net core 2。我需要检查我的依赖项是否与 .net core 2 兼容。

如何检查https://www.nuget.org/packages/Aspose.Cells/7.6.0是否支持 .net core 2 或 .net 标准或 .net 框架?

谢谢

0 投票
0 回答
42 浏览

nuget - Upload lower version of a NuGet package to the NuGet site

Is it possible to add the lower version of a library as a NuGet package on the https://www.nuget.org/ site?

For example, I have already uploaded versions:

  • 1.1
  • 1.1.1
  • 1.1.2
  • 1.1.3
  • 1.2

Now I need to add the version 1.1.4.

How can I do this? Will the Visual Studio NuGet manager return 1.2 as the latest version by default? Or will it change on 1.1.4?

0 投票
2 回答
2151 浏览

nuget - 如何使用 Nuget Gallery 私下发布 nuget 包

我创建了一个 nuget 包,我想使用 Nuget Gallery 与我的团队分享它。

我需要私下发布 nuget 包。所以我已经设法从Nuget Gallery 构建步骤构建 Nuget Gallery 当我运行构建时,Google Chrome 会显示“localhost”网站地址,显示 Nuget Gallery。

1)如何将我最近创建的nuget包添加到本地Nuget Gallery?2) 在我设法在该库中添加 nuget 包后,如何发布 Nuget 库并与我的团队共享?

谢谢

0 投票
1 回答
1620 浏览

powershell - Powershell Find-Package 命令不适用于 nuget v3 包源

正如标题所说,我不能将 Find-Package 命令与 nuget v3 url 一起使用:

如果我运行命令:

我收到未找到匹配项的错误。将命令更改为:

工作正常。

我需要升级一些软件才能让它工作吗?我正在运行 Powershell 版本 5,所以我不确定我需要采取哪些步骤来解决这个问题。

0 投票
0 回答
83 浏览

c# - 如何让 Nuget Gallery 支持 mysql?

我 git clone Nuget Gallery,它基于 sql server。

由于 NuGet 库使用实体框架 6,我尝试按照以下步骤迁移到 mysql:

1.将web.config的connectionStrings替换为以下

2.将 entityframework 部分替换为以下内容:

3.[DbConfigurationType(typeof(EntitiesConfiguration))]替换[DbConfigurationType(typeof(MySqlEFConfiguration))] EntitiesContext和SupportRequestDbContext

4.将 EntitiesConfiguration() 构造函数替换为

但是,运气不好!

当我执行Update-Database -ConfigurationTypeName MigrationsConfiguration -Verbose时,它引发了如下异常:

使用启动项目“NuGetGallery”。使用 NuGet 项目“NuGetGallery”。指定“-Verbose”标志以查看应用于目标数据库的 SQL 语句。System.NullReferenceException: 未将对象引用设置到对象的实例中。 在 MySql.Data.MySqlClient.MySqlProviderServices.GetDbProviderManifestToken(DbConnection connection) 在 System.Data.Entity.Core.Common.DbProviderServices.GetProviderManifestToken(DbConnection connection) System.Data .Entity.Utilities.DbProviderServicesExtensions.GetProviderManifestTokenChecked(DbProviderServices providerServices, DbConnection 连接) 在 System.Data.Entity.Infrastructure.DefaultManifestTokenResolver.<>c__DisplayClass1.b__0(Tuple 3 k) 在 System.Collections.Concurrent.ConcurrentDictionary2.GetOrAdd(TKey key, Func2 valueFactory) 在 System.Data.Entity.Infrastructure.DefaultManifestTokenResolver.ResolveManifestToken(DbConnection connection) 在 System.Data.Entity.Utilities.DbConnectionExtensions.GetProviderInfo(DbConnection connection, DbProviderManifest& providerManifest) 在 System.Data.Entity.DbModelBuilder.Build(DbConnection providerConnection) 在 System.Data.Entity.Internal.LazyInternalContext.CreateModel(LazyInternalContext internalContext) 在 System.Data.Entity.Internal.RetryLazy2.GetValue(TInput 输入) 在 System.Data.Entity.Internal.LazyInternalContext.InitializeContext() 在 System.Data.Entity.Internal.InternalContext.ForceOSpaceLoadingForKnownEntityTypes() 在 System.Data.Entity.DbContext.System.Data.Entity。 Infrastructure.IObjectContextAdapter.get_ObjectContext() 在 NuGetGallery.ObjectMaterializedInterceptingDbContext.get_ObjectContext() 位置 E:\git\HSY.NugetGallery\src\NuGetGallery.Core\Entities\Interception\ObjectMaterializedInterceptingDbContext.cs: 行号 35 在 NuGetGallery.ObjectMaterializedInterceptingDbContext..ctor( String connectionString) 位置 E:\git\HSY.NugetGallery\src\NuGetGallery.Core\Entities\Interception\ObjectMaterializedInterceptingDbContext.cs:行号 19 在 NuGetGallery.EntitiesContext..ctor(String connectionString, Boolean readOnly) 位置 E:\git\ HSY。NugetGallery\src\NuGetGallery.Core\Entities\EntitiesContext.cs:行号 42 在 NuGetGallery.EntitiesContext..ctor() 位置 E:\git\HSY.NugetGallery\src\NuGetGallery.Core\Entities\EntitiesContext.cs:行号34

0 投票
1 回答
208 浏览

azure - 为 Azure 应用服务创建站点扩展并添加到库

我创建了一个 nuget 包扩展 .nupkg ,其中包含一些内容文件夹。我正在尝试将该包添加到 Azure 应用服务的站点扩展库中。我使用 Nuget 包资源管理器创建了 Nuget 包。

最初通过一些链接,我了解到它需要上传到www.siteextensions.net。我试过了,我的包被上传到了那个网站。但是,当我尝试在 Web 应用程序的 scm 站点的站点扩展中搜索我的包时,它会被列出。

然后我什至尝试在nuget.org中以不同的名称上传包。但仍然有帮助。它没有在 Azure 应用服务的扩展中列出。

如何将我的站点扩展添加到 Azure 应用服务库?

0 投票
0 回答
270 浏览

artifactory - 尝试从 nuget-gallery 访问 nuget 包时出现超时问题

我正在尝试从神器中取出包裹,但面临以下问题。

收到以下错误:

0 投票
0 回答
125 浏览

jenkins - 如何使用命令创建 NuGet ApiKey

所以我需要一种从控制台/命令创建 NuGet ApiKey 的方法。基本上,这个想法是自动化项目的 nuget 包部署。理想的步骤:

  1. 用户将用户名/密码传递给 Jenkins(或者其他,Jenkins 是我们使用的)
  2. 詹金斯与 nuget 画廊建立联系
  3. Jenkins 与您的用户一起创建一个 nuget 包
  4. Jenkins 为新包创建 ApiKey
  5. Jenkins 保存 ApiKey 以备将来推送
  6. 从现在开始,每次我们需要发布一个 nuget 时,只需单击一个按钮,不需要任何数据。
  7. 不存储用户名/密码。

除了如何创建该 ApiKey 之外,该列表中的所有内容似乎都很简单,我所发现的只是通过 https://www.nuget.org/account/apikeys上的 UI 创建它

0 投票
2 回答
660 浏览

nuget - 为什么 Artifactory 不列出/缓存来自远程 NuGet Gallery 存储库的 NuGet 包?

我希望从现有的私有 NuGet Gallery 存储库迁移。我们有带有 nuget virtual、nuget-local 和 nuget-remote-cache 存储库的 Artifactory(v6.10.1,即将升级)。

我已将 Artifactory 远程存储库配置为指向 NuGet Gallery 服务器,正如您从下面的屏幕截图中看到的那样,它通过了连接测试。但是,当我尝试nuget list从远程仓库中返回时,我没有收到任何包裹。如果我直接对 NuGet 库尝试相同的调用,我会返回很多包。我的帐户在工件中具有“任何”权限(有效权限显示所有 4 项检查),从 NuGet Gallery 或工件存储库检索不需要身份验证,但我已经设置了我的 un/pw 和 apikey。如果我尝试浏览包,NuGet 甚至都不可用。在 Artifacts 中,唯一显示的是来自本地 repo 的 package.json。这里发生了什么?

在此处输入图像描述

在此处输入图像描述

0 投票
0 回答
35 浏览

api - 用于包元数据的 Nuget API 未列出包的所有版本

我的目标是以编程方式检索 NuGet 包的每个版本的发布日期。但是,包元数据的 NuGet API 似乎并不包含包的所有版本的信息。

例如,https://api.nuget.org/v3-flatcontainer/htmlsanitizer/index.json列出包htmlsanitizer的 74 个版本,最新的是5.0.376. 这是按照官的说法。但是,此端点并未列出每个版本的详细信息,例如发布日期。

列出这些详细信息的端点https://api.nuget.org/v3/registration3/htmlsanitizer/index.json仅列出 63 个版本,最新的是5.0.274-beta. 此 API 记录在此处

为什么后面的 API 端点会出现这种不完整性?是否有任何不同的 API 来检索包的每个版本的详细信息?