简体   繁体   English

可以更改dnx / dotnetcore包缓存位置

[英]Can the dnx/dotnetcore package cache location be changed

I have a machine where the C:\\ drive is running out of space and I'd like to change the location where my DNX/DOTNET packages are installed to a location under my D:\\ drive. 我有一台机器,其中C:\\驱动器空间不足,我想将我的DNX / DOTNET软件包的安装位置更改为我的D:\\驱动器下的位置。

Is the package cache location configurable? 包缓存位置是否可配置?

NOTE: I don't have the flexibility to change my profile location to a different drive. 注意:我无法灵活地将配置文件位置更改为其他驱动器。

Use the NUGET_PACKAGES environment variable and set it to a path you prefer. 使用NUGET_PACKAGES环境变量并将其设置为您喜欢的路径。

Specifically, open up System Properties, create a user environment variables called NUGET_PACKAGES , and set it to a path of your choosing. 具体来说,打开系统属性,创建一个名为NUGET_PACKAGES的用户环境变量,并将其设置为您选择的路径。

在此输入图像描述

You will need to restart Visual Studio and any other programs for them to see the updated environment variable. 您需要重新启动Visual Studio和其他任何程序才能看到更新的环境变量。

This works with Nuget 3.3 / .NET Core RC1. 这适用于Nuget 3.3 / .NET Core RC1。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM