Exception.ToString() failed

It was fine today, but suddenly this error occurred during compilation. Because Exception.ToString() failed, the exception string could not be printed.

After I compiled with Visual Studio and Rider, it was like this

Try to run as Admin, also check if any file that is modified by Build is blocked by another process.

It doesn’t work. After I try to get rid of git from the cache, it works

I also meet some blockings from Git, but strangely not always - just sometimes. Even when trying to delete a file for example. Maybe it is something similar to this.

试试这个。git config --global core.quotepath false