微软软件包Linux 上的 .NET Core https://learn.microsoft.com/en-us/nuget/tools/cli-ref-install对于Ubuntu。我目前正在使用它。我现在想安装Json.NET https://www.newtonsoft.com/json这指示我使用包管理器控制台 https://learn.microsoft.com/en-us/nuget/tools/package-manager-console并运行,
PM> Install-Package Newtonsoft.Json
我想知道 Linux 是如何实现的。我看到有一个Nuget CLI https://learn.microsoft.com/en-us/nuget/tools/cli-ref-install,但似乎在 .NET Core 上不可用。此外,文档说 https://learn.microsoft.com/en-us/nuget/guides/install-nuget#nuget-cli
在 Mac 和 Linux 上,安装 Mono 4.4.2 或更高版本。
如何在 Linux 上简单地安装软件包? npm/cpan/pip/gem 的 .NET 等价物是什么?
当我跑步时dotnet nuget
, the 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.