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

  1. i use vm provisioned organization work for; limited space in os drive.
  2. we asked save data different drive has sufficient enough space , expanded.
  3. i cannot edit system environment variables. can add/edit environment variables @ user scope / level.

activities performed

i have futile attempts following suggestions -

  1. edit %appdata%\nuget\nuget.config file , 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 clifallbackfolder gets reset %userprofile%\.dotnet next time run dotnet restore

  2. i have defined nuget_packages environment variable @ user scope , have set value non-os drive. **affects .nuget folder location **

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

  4. 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%\.dotnet relocated 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.

github response on issue

i still feel constraints listed above, essential @ least in future versions should enabled.

the question still open

can folder %userprofile%\.nuget relocated non-os drive (in case d: drive).

please share suggestions , mind steps taken attempt achieve goal in first post.


Comments

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

transpose - Maple isnt executing function but prints function term -