After paket clear-cache I cannot run paket anymore
Description
Repro steps
I ran a dotnet paket clear-cache and trying to run paket again, I get:
Cannot use file stream for [C:\Users...nuget\packages\paket\6.2.1\tools\netcoreapp2.1\any\paket.deps.json]: No such file or directory A fatal error was encountered. The library 'hostpolicy.dll' required to execute the application was not found in 'C:\Users...nuget\packages\paket\6.2.1\tools\netcoreapp2.1\any'. Failed to run as a self-contained app.
- The application was run as a self-contained app because 'C:\Users...nuget\packages\paket\6.2.1\tools\netcoreapp2.1\any\paket.runtimeconfig.json' was not found.
- If this should be a framework-dependent app, add the 'C:\Users...nuget\packages\paket\6.2.1\tools\netcoreapp2.1\any\paket.runtimeconfig.json' file and specify the appropriate framework.
I installed paket as a tool in a temp dir. And then did a tool restore. After that I got paket working again.
But it seems that dotnet paket clear-cache, clears a necessary paket config file.
Maybe related to #3879