dotnet / dotnet/core

Use recommended storage locations for app and user data

Open
#7,608 3 comments 0 reactions 0 assignees View on GitHub
Team:SDK
Dominant language
PowerShell
Stars
22k
Forks
4.9k
Avg merge
5d 5h
Merged PRs (30d)
29

Description

On Windows, .NET 6 is putting application data directly in the user profile at `$env:userprofile\.dotnet`. This violates Microsoft recommendations for Windows operating systems and should be moved to the recommended locations.

![grafik](https://user-images.githubusercontent.com/2971735/179354012-92c1e0b4-5fb4-4a60-b6e8-87242a638e2c.png)

A selection of recommended storage locations are

- ApplicationData (roaming)
- LocalApplicationData (non-roaming e.g., Local/LocalLow)
- CommonApplicationData (non-roaming)
- CommonProgramFiles (non-roaming)

Source and details about recommended storage locations:
https://docs.microsoft.com/en-us/dotnet/api/system.environment.specialfolder?view=net-6.0

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.