If anyone has this problem too, check your csprojs or Directory.Build.props. What caused this never ending restore/refresh for me was something undeterministic defined in my Directory.Build.props. Any other method in this or the other thread (deleting bin/obj, repairing/uninstalling VS, clearing caches etc.) didn't work for me.