2017-12-29 8 views
1

우분투 용 Microsoft 패키지 .NET Core on Linux 나는 현재 그것을 사용하고있다. 지금 내가 리눅스 그렇게 궁금 해요 Package Manager console를 사용하고 실행하는 저를 지시 Json.NET,nuget의 .NET 코어를 사용하여 명령 줄에서 패키지를 다운로드하려면 어떻게합니까?

PM> Install-Package Newtonsoft.Json 

를 설치하려고합니다. Nuget CLI이 있지만 .NET Core에서 사용할 수있는 것 같지 않습니다. Moreover the docs say

Mac 및 Linux의 경우 Mono 4.4.2 이상을 설치하십시오.

Linux에 패키지를 어떻게 간단하게 설치합니까? npm/cpan/pip/gem에 해당하는 .NET은 무엇입니까?

dotnet nuget을 실행하면 install 명령이 누락 된 것 같습니다.

dotnet add package --help

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. 

답변

3

dotnet add package Newtonsoft.Json

자세한 내용은 GitHub의 페이지 https://github.com/dotnet/docs/blob/master/docs/core/tools/dotnet-add-package.md를 참조하십시오.

+0

Beautiful * "프로젝트에 대한 참조를 추가하십시오."* 분명히 원격 저장소에서 다운로드하여 설치하는 것을 의미합니다.'npm install','cpanm --install''pip install''gem install'. Microsoft .. * "프로젝트에 참조를 추가하십시오."* –

+0

'notepad yourproject.csproj'. 오우, 당신이 끝났을 때 Ctrl-S를 잊지 마라! – Pac0

관련 문제