Open Eilon opened 9 years ago
Any way to override this? I run a mobile drive setup with everything in a different path.
Tip: May the root path should be parameterized, to change in another directory for advanced users, not everything in %USERPROFILE%
Yup, it would be great to be able to control the .dnx
folder location. User profile for me is on the C drive, which is 90% full on my box for example ;)
The packages
folder can get big! 2GB+ easily....
Agreed. To people with rather small SSD drive, this may become an issue real fast.
This can already be accomplished with the DNX_USER_HOME
environment variable. You can set it up like this:
curl -sSL https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.sh | DNX_USER_HOME=$DNX_USER_HOME sh
@aggieben that's a .sh
, we're talking plain Windows
To people who have small SSD for their main (C:) drive, a possible solution is to create a NTFS junction at %USERPROFILE%\.dnx
and move it to another disk. I did this to free some space of the windows update folder <_<
@jods4 those are just patches, combatting symptoms instead of causes. I'm sure out of all developers, you'll find some who don't want to touch %USERPROFILE%
at all for some reason :)
The DNX_USER_HOME
seems to exist in the .ps1
install files too, I don't know if it is documented somewhere?
Setting DNX_HOME
works fine:
@akoeplinger thanks for confirming!
My tip really is just about SSD drive, lot of things alredy in %USERPROFILE%
and create a NTFS junction at %USERPROFILE%\.dnx
to another disk is boring to manage.
@akoeplinger If I change the dnx_home and remove the installed DNX runtime versions from the user profile, VS 2015 stops working. At least for me, it doesn't find any DNX anymore and cannot compile the solutions. DNX.targets throws an error The Dnx Runtime package needs to be installed
...
If I setup DNVM again with DNVM setup
and install some runtimes, it starts working again. So it seams VS doesn't care about the path or DNX_HOME env variable -.-
The core runtime, tools, and NuGet packages are installed into a sub-folder in
%USERPROFILE%
. Previous names of these folders were.k
,.kpm
, and.kre
.The new folders are all structured under a top-level
.dnx
folder, but otherwise have very similar contents to what they used to have.