简体   繁体   English

nuget.org和api.nuget.org有什么区别

[英]what is difference between nuget.org and api.nuget.org

we are using VS 2015 and managed our references through nugget package manager. 我们正在使用VS 2015并通过nugget包管理器管理我们的引用。 We used to get reference of nugget from http://nuget.org in previous version of nugget manager. 我们曾经在之前版本的金块经理中从http://nuget.org获得金块的参考。 But in the latest edition, we see it is referred to api.nuget.org instead of nugget.org. 但在最新版本中,我们看到它被称为api.nuget.org而不是nugget.org。 Is there any difference between these two version of nugget.org and api.nugget.org. 这两个版本的nugget.org和api.nugget.org之间有什么区别吗?

api.nuget.org is the new API for NuGet version 3. This is REST based and uses JSON-LD. api.nuget.org是NuGet版本3的新API。这是基于REST的并使用JSON-LD。

nuget.org is the API for NuGet version 2. This is an odata based API. nuget.org是NuGet版本2的API。这是一个基于odata的API。

There is some information in the release notes for NuGet 3.0 beta : NuGet 3.0 beta发行说明中有一些信息:

In the NuGet 3.0 Beta bits, you'll see a new package source called "api.nuget.org" in the package source dropdown. 在NuGet 3.0 Beta位中,您将在包源下拉列表中看到一个名为“api.nuget.org”的新包源。 If you select that package source, we'll use our new API rather to connect to nuget.org. 如果您选择该包源,我们将使用我们的新API而不是连接到nuget.org。 In NuGet 3.0 RC, this new API v3-based package source will replace the v2-based "nuget.org" package source. 在NuGet 3.0 RC中,这个基于API v3的新包源将取代基于v2的“nuget.org”包源。 We recommend disabling all of the other public package sources and leave only api.nuget.org as your only public package repository. 我们建议禁用所有其他公共包源,并仅将api.nuget.org留作您唯一的公共包存储库。

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

相关问题 “无法解析远程名称:'nuget.org'” - “The remote name could not be resolved: 'nuget.org'” 无法加载源 https://api.nuget.org/v3/index.json 的服务索引 - Unable to load the service index for source https://api.nuget.org/v3/index.json Visual Studio中的NuGet程序包管理器:无法为源https://api.nuget.org/v3/index.json加载服务索引 - NuGet Package Manager in Visual Studio: Unable to load the service index for source https://api.nuget.org/v3/index.json 有没有办法按上次更新日期对 nuget.org 结果进行排序? - Is there a way to sort nuget.org results by last updated date? 尝试将包推送到 nuget.org 时出现 403 - Getting 403 when trying to push packages to nuget.org Visual Studio 无法连接到 Windows 上的 Nuget.org 7 - Visual Studio cannot connect to Nuget.org on Windows 7 NuGet 的默认包源默认为新添加的源,而不是 All 或 nuget.org - Default package source for NuGet defaulting to newly added source and not All or nuget.org 使用-source参数的NuGet Install Packages不会下载nuget.org - NuGet Install Packages with -source parameter isn't downloading nuget.org 将 NuGet package 推送到 nuget.org 时,如何发布文档? - How can I publish documentation when pushing a NuGet package to nuget.org? Visual Studio 2015 Update 2中的Nuget.org不会获取nuget包 - Nuget.org in visual studio 2015 update 2 wont get nuget packages
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM