Dotnet tool restore doesnt work after moving to Dev Drive

After you have followed the guide on how to setup a Windows Dev Drive you might have noticed that your dotnet tools are not working anymore. This is because the tools are cached in the user profile folder.

More specifically, the tools are cached in the %USERPROFILE%\.dotnet\toolResolverCache folder.

Simply delete that folder and run dotnet tool restore again. The tools will be restored and cached in the new location. (Which is now on your Dev Drive)

This post is licensed under CC BY 4.0 by the author.