Nuget还原提示带有“此应用程序无法在您的PC上运行”

问题描述

突然,nuget restore命令开始失败,并显示“此应用程序无法在您的PC上运行”消息。来自cmd的命令:

nuget.exe restore MySln.sln

错误

enter image description here

控制台中也出现“拒绝访问”消息:

enter image description here

我有VS 2017,Windows10。无法确定发生了什么。 Nuget清除缓存无济于事。有什么建议吗?

解决方法

所以我从here下载了一个新的nuget.exe,一切正常。