Relocate %USERPROFILE%\.dotnet and .nuget to non-OS drive dotnet core 2.0 preview -
question
can folder %userprofile%\.dotnet , %userprofile%\.nuget relocated non-os drive (in case d: drive).
constraints
- i use vm provisioned organization work for; limited space in os drive.
- we asked save data different drive has sufficient enough space , expanded.
- i cannot edit system environment variables. can add/edit environment variables @ user scope / level.
activities performed
i have futile attempts following suggestions -
edit
%appdata%\nuget\nuget.configfile , change value key -clifallbackfolder, ,globalpackagesfolder.<?xml version="1.0" encoding="utf-8"?> <configuration> <packagesources> <add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolversion="3" /> <add key="globalpackagesfolder" value="d:\nuget\packages" /> <add key="clifallbackfolder" value="d:\dotnet\nugetfallbackfolder" /> </packagesources> </configuration>a. value
clifallbackfoldergets reset%userprofile%\.dotnetnext time run dotnet restorei have defined
nuget_packagesenvironment variable @ user scope , have set value non-os drive. **affects .nuget folder location **i so'ed question , have seen (with problem still persisting) -
a. https://github.com/dotnet/cli/issues/4003 (question on .dotnet folder not responded)
b. is possible change location of packages nuget? (focuses on .nuget folder , not on .dotnet\clinugetfallbackfolderfallbackfolder)
raised issue in github. realized have committed mistake raising issue in preview 3 of code branch. realized more question issue, posting question here. (https://github.com/dotnet/cli/issues/7256)
dotnet --info output
.net command line tools (2.0.0-preview2-006497)
product information: version: 2.0.0-preview2-006497 commit sha-1 hash: 06a2093335
runtime environment: os name: windows os version: 6.1.7601 os platform: windows rid: win7-x64 base path: c:\program files\dotnet\sdk\2.0.0-preview2-006497\
microsoft .net core shared framework host version : 2.0.0-preview2-25407-01 build : 40c565230930ead58a50719c0ec799df77bddee9
dotnet nuget --version
nuget command line 4.3.0.3
for first part of question -
can folder
%userprofile%\.dotnetrelocated non-os drive (in case d: drive).
answer is
as of dotnet core 2.0.0-preview2-006497, not possible. folder in question part of sdk , expected located in %userprofile% directory.
i still feel constraints listed above, essential @ least in future versions should enabled.
the question still open
can folder
%userprofile%\.nugetrelocated non-os drive (in case d: drive).
please share suggestions , mind steps taken attempt achieve goal in first post.
Comments
Post a Comment