Paket icon indicating copy to clipboard operation
Paket copied to clipboard

After paket clear-cache I cannot run paket anymore

Open halcwb opened this issue 3 years ago • 2 comments

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.

halcwb avatar Jan 25 '22 21:01 halcwb

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.

halcwb avatar Jan 25 '22 21:01 halcwb

Maybe related to #3879

cdrnet avatar Mar 28 '22 13:03 cdrnet