2016-08-04 2 views

답변

0

NUGET_PACKAGES env 변수를 사용하거나 dotnet restore을 실행할 때 --packages을 지정할 수 있습니다. env 변수는 문서화되지 않았으므로 향후 변경 될 수 있습니다.

Arguments: 
    [root] List of projects and project folders to restore. Each value can be: a path to a project.json or global.json file, or a folder to recursively search for project.json files. 

Options: 
    -h|--help      Show help information 
    --force-english-output   Forces the application to run using an invariant, English-based culture. 
    -s|--source <source>   Specifies a NuGet package source to use during the restore. 
    --packages <packagesDirectory> Directory to install packages in. 
    --disable-parallel    Disables restoring multiple projects in parallel. 
    -f|--fallbacksource <FEED>  A list of packages sources to use as a fallback. 
    --configfile <file>    The NuGet configuration file to use. 
    --no-cache      Do not cache packages and http requests. 
    --infer-runtimes    Temporary option to allow NuGet to infer RIDs for legacy repositories 
    -v|--verbosity <verbosity>  The verbosity of logging to use. Allowed values: Debug, Verbose, Information, Minimal, Warning, Error. 
    --ignore-failed-sources   Only warning failed sources if there are packages meeting version requirement 

나는 또한 당신이 이동하려는 경우이 질문에 독서 추천 : https://github.com/dotnet/cli/blob/rel/1.0.0/build_projects/shared-build-targets-utils/Utils/Dirs.cs#L43

dotnet restore --help의 출력은 당신에게 더 많은 정보를 줄 것이다 : 여기에 발생하는 경우에 관련 코드에 대한 링크입니다 오프라인 개발 : How do you set up for offline development with .net Core