microsoft / microsoft/vscode-dotnettools

[BUG] C# Dev Kit does not respect the DOTNET_CLI_HOME env var

Open
#1,963 0 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area-dotnet-acquisition bug
Dominant language
No language data
Stars
321
Forks
54
Avg merge
2d 19h
Merged PRs (30d)
2

Description

Describe the Issue

After installed C# Dev Kit the .dotnet folder is created on user home directory despite I have the DOTNET_CLI_HOME environment variable set to a different location.

Within the .dotnet folder two other folders are created: symbolcache and visualizers. The former seems to be related to SourceLink but I have no idea about the last one.

Steps To Reproduce

No response

Expected Behavior

This extension should not make a mess in home directory, and respect the DOTNET_CLI_HOME if it is set.

Environment Information

OS: Mac
VS Code: 1.99.3
C# Dev Kit: v1.18.25

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue on macOS with VS Code 1.99.3 and C# Dev Kit v1.18.25 while DOTNET_CLI_HOME points elsewhere. Trace which extension entry point creates the user-home .dotnet/symbolcache and .dotnet/visualizers folders, then verify that the folders are created under the configured location instead.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, vscode
Domain
developer-experience, devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.