[英]How to download a nupkg package from nuget programmatically in .NET Core?
[英]How do I download a package from the command line with .NET Core from nuget?
Microsoft 在Linux上為Ubuntu打包.NET Core 。 我正在使用它。 我現在想安裝Json.NET ,它指示我使用Package Manager控制台並運行,
PM> Install-Package Newtonsoft.Json
我想知道我是怎么做那個Linux的。 我看到有一個Nuget CLI ,但它似乎不適用於.NET Core。 此外,文件說
在Mac和Linux上,安裝Mono 4.4.2或更高版本。
我如何在Linux上安裝軟件包? 什么是.NET等價的npm / cpan / pip / gem?
當我運行dotnet nuget
, install
命令似乎丟失了。
NuGet Command Line 4.3.0.5
Usage: dotnet nuget [options] [command]
Options:
-h|--help Show help information
--version Show version information
-v|--verbosity <verbosity> The verbosity of logging to use. Allowed values: Debug, Verbose, Information, Minimal, Warning, Error.
Commands:
delete Deletes a package from the server.
locals Clears or lists local NuGet resources such as http requests cache, packages cache or machine-wide global packages folder.
push Pushes a package to the server and publishes it.
Use "dotnet nuget [command] --help" for more information about a command.
dotnet add package --help
dotnet add package Newtonsoft.Json
有關更多詳細信息,請參閱github頁面https://github.com/dotnet/docs/blob/master/docs/core/tools/dotnet-add-package.md 。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.