aspnet / Announcements

Subscribe to this repo to be notified about major changes in ASP.NET Core and Entity Framework Core
Other
1.66k stars 80 forks source link

K/DNX installation location changed #5

Open Eilon opened 9 years ago

Eilon commented 9 years ago

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.

%USERPROFILE%\.dnx\alias\default.txt
%USERPROFILE%\.dnx\packages\<NuGet packages>
%USERPROFILE%\.dnx\runtimes\dnx-clr-win-x64.1.0.0-beta4\...
%USERPROFILE%\.dnx\runtimes\dnx-clr-win-x86.1.0.0-beta4\...
%USERPROFILE%\.dnx\runtimes\dnx-coreclr-win-x64.1.0.0-beta4\...
%USERPROFILE%\.dnx\runtimes\dnx-coreclr-win-x86.1.0.0-beta4\...
CumpsD commented 9 years ago

Any way to override this? I run a mobile drive setup with everything in a different path.

alexsandro-xpt commented 9 years ago

Tip: May the root path should be parameterized, to change in another directory for advanced users, not everything in %USERPROFILE%

MichaCo commented 9 years ago

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....

TheMadKow commented 9 years ago

Agreed. To people with rather small SSD drive, this may become an issue real fast.

aggieben commented 9 years ago

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
CumpsD commented 9 years ago

@aggieben that's a .sh, we're talking plain Windows

jods4 commented 9 years ago

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 <_<

CumpsD commented 9 years ago

@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?

akoeplinger commented 9 years ago

Setting DNX_HOME works fine:

image

CumpsD commented 9 years ago

@akoeplinger thanks for confirming!

alexsandro-xpt commented 9 years ago

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.

MichaCo commented 9 years ago

@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 -.-