Linux에서 기본 너겟 패키지 폴더를 변경할 수 있습니까? 나는 dotnet restore를 사용하여 ~/.nuget/packages에 저장된 캐시를 발견했다. 그러나 나를 위해 편리하지 않습니다. 감사합니다Linux에서 기본 너겟 캐시 폴더 변경
0
A
답변
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
관련 문제
- 1. symfony 캐시 기본 폴더 경로
- 2. 은 너겟 서버 및 너겟 패키지의 기본 원리를 설명합니다
- 3. Eclipse의 기본 출력 빈 폴더 변경
- 4. Extjs 변경 4 기본 MVC 폴더 구조
- 5. Inno 설치 기본 설치 폴더 변경
- 6. 임시 프로필이 만들어지는 기본 폴더 변경 firefox
- 7. setuptools를 사용하여 기본 dist 폴더 변경
- 8. PackageManager install-package 기본 폴더 변경
- 9. 기본 폴더 사용 권한 변경 우분투
- 10. 기본 크롬 다운로드 폴더 변경 webdriver C#
- 11. linux에서 폴더 및 권한 생성
- 12. 변경 캐시
- 13. Amazon Linux에서 Symfony2의 캐시/로그 권한 AMI
- 14. hottowel 너겟?
- 15. 전용 너겟 피드 - 패키지 경로 폴더 및 인덱싱 문제
- 16. Eclipse-PDT : 포함 폴더 변경
- 17. CodeIgniter의 캐시 폴더 권한 777
- 18. Linux에서 DRBD로 블록 레벨 캐시 설정
- 19. 폴더 구조 변경
- 20. NuGet 3.5/Visual Studio 2015 - 패키지 캐시 위치 변경
- 21. LINUX에서 Camel 2.10을 사용하여 폴더 파일 처리하기
- 22. Linux에서 숨겨진 Windows 파일/폴더 만들기
- 23. linux에서 폴더 사용 권한을 설정하는 방법은 무엇입니까?
- 24. Doctrine2 기본 결과 캐시
- 25. 기본 캐시 질문
- 26. SASS 용 캐시 캐시 위치 변경
- 27. 페이지의 캐시 설정 변경
- 28. NHibernate.Caches.Volocity 변경 캐시 이름
- 29. 오징어 캐시 키 변경
- 30. 자작 나무 캐시 변경