Skip to content

Instantly share code, notes, and snippets.

@javiercn
Last active March 11, 2020 09:16
Show Gist options
  • Save javiercn/d6b7e6b498f40aa1d05436a8a19b60f4 to your computer and use it in GitHub Desktop.
Save javiercn/d6b7e6b498f40aa1d05436a8a19b60f4 to your computer and use it in GitHub Desktop.
Cleanup dotnet machine state

Clear nuget cache

dotnet nuget locals --clear all: This will remove ALL packages in your nuget cache from your machine, as a result other projects might fail to restore afterwards if the package is not available in the original download location

Clear dotnet engine template cache

rm -rf ~/.templateengine: This will remove all templates you installed that didn't come with the SDK

Clear dotnet profile state

rm -rf ~/.dotnet: This will remove all files dotnet creates during the first run experience, tools installs, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment