我在我的Windows 2008 R2 x64机器上安装了DotNetCore.1.0.0.RC2-SDK.Preview1-x64.exe。当我尝试运行dotnet
命令时,出现以下错误:
C:\Users\Administrator>dotnet --version
Failed to load the dll from [C:\Program Files\dotnet\hostfxr.dll], HRESULT: 0x80070057
我仔细检查了我的操作系统是x64,并且正在安装x64版本的.NET Core。另外,我的安装似乎没有问题,在我的计算机上存在文件
C:\Program Files\dotnet\hostfxr.dll
。在Google上搜索并不能对错误有太多帮助。也许我缺少一些先决条件?