How to move .dnx directory from% USERPROFILE%

DNVM sets the .dnx directory to C:\Users\myUsername\.dnx (in %USERPROFILE% ).

Unfortunately, my user profile is limited to an IT policy of 30 MB.

How to move this directory to another location, for example. C:\.dnx ?

I tried to create a symbolic link from C:\Users\myUsername\.dnx to C:\.dnx , but Visual Studio does not follow symbolic links when building the solution, so I get build errors such as:

Could not find a part of the path 'C:\Users\myUsername\.dnx\packages\System.IO\4.0.10-beta-22816\lib\contract\System.IO.dll'.

I am using Visual Studio Community 2015 RC with .NET 4.6 under Windows 7 Professional.

+8
windows symlink dnx dnvm
source share
3 answers

I found a workaround by making the .dnx directory non-roaming through this registry key: HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Winlogon\ExcludeProfileDirs

Read more about this workaround here .

+2
source share

I have a problem when my employer blocks .exe files that are executed in user profile directories.

I moved the folder C: \ Users \% USERPROFILE% .dnx to the folder C: \ Program Files.dnx and created a symbolic link with the following command:

 mklink /DC:\Users\%MYPROFILENAME%\.dnx "C:\Program Files\.dnx" 

So far it works, and I work.

+4
source share

Use the junction tool for MS to create a directory alias on another volume. Download the junction.exe file and read it.

0
source share

All Articles