如何使用 .NET Core 从命令行从 nuget 下载包?
How do I download a package from the command line with .NET Core from nuget?
Microsoft 软件包 .NET Core on Linux for Ubuntu. I'm currently using that. I now want to install Json.NET which instructs me to use the Package Manager console 和 运行、
PM> Install-Package Newtonsoft.Json
我想知道我是怎么做到的 Linux。我看到有一个 Nuget CLI, but it doesn't seem like that's available on .NET Core. Moreover the docs say
On Mac and Linux, install Mono 4.4.2 or later.
如何在 Linux 上简单地安装一个包? npm/cpan/pip/gem 的 .NET 等价物是什么?
当我运行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。
Microsoft 软件包 .NET Core on Linux for Ubuntu. I'm currently using that. I now want to install Json.NET which instructs me to use the Package Manager console 和 运行、
PM> Install-Package Newtonsoft.Json
我想知道我是怎么做到的 Linux。我看到有一个 Nuget CLI, but it doesn't seem like that's available on .NET Core. Moreover the docs say
On Mac and Linux, install Mono 4.4.2 or later.
如何在 Linux 上简单地安装一个包? npm/cpan/pip/gem 的 .NET 等价物是什么?
当我运行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。