可以更改dnx/dotnetcore程序包缓存位置 [英] Can the dnx/dotnetcore package cache location be changed

查看:117
本文介绍了可以更改dnx/dotnetcore程序包缓存位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一台C:\驱动器空间不足的机器,我想将DNX/DOTNET软件包的安装位置更改为D:\驱动器下的位置.

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.

程序包缓存位置是否可配置?

Is the package cache location configurable?

注意:我不能灵活地将个人资料位置更改为其他驱动器.

推荐答案

使用NUGET_PACKAGES环境变量并将其设置为您喜欢的路径.

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.

您将需要重新启动Visual Studio和任何其他程序才能查看更新的环境变量.

You will need to restart Visual Studio and any other programs for them to see the updated environment variable.

这可与Nuget 3.3/.NET Core RC1一起使用.

This works with Nuget 3.3 / .NET Core RC1.

这篇关于可以更改dnx/dotnetcore程序包缓存位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆