对于Windows 8.1和更低版本,或Windows Server 2012 R2和更低版本:
确保您的Windows安装是最新的,并且包括KB2999226,可以通过Windows Update安装。如果没有安装此更新,则在启动.NET Core应用程序时会看到类似以下的错误:The program can't start because api-ms-win-crt-runtime-l1-1-0.dll is missing from your computer. Try reinstalling the program to fix this problem.
对于Windows 7或Windows Server 2008 R2:
除了KB2999226,请确保还安装了KB2533623。如果没有安装此更新,则在启动.NET Core应用程序时会看到与以下类似的错误:The library hostfxr.dll was found, but loading it from C:\<path_to_app>\hostfxr.dll failed
。
解决方案:打补丁,选择自己平台的更新程序,下载并安装