Tom*_*ski 11 c# visual-studio-code asp.net-core
任何人有这个问题我改变Pc并尝试安装网络核心框架但是vs代码返回此信息当我试图写dontet --info
Failed to load the dll from [C:\Program
Files\dotnet\host\fxr\2.1.0\hostfxr.dll], HRESULT: 0x80070057
The library hostfxr.dll was found, but loading it from C:\Program
Files\dotnet\host\fxr\2.1.0\hostfxr.dll failed
- Installing .NET Core prerequisites might help resolve this problem.
http://go.microsoft.com/fwlink/?LinkID=798306&clcid=0x409
Run Code Online (Sandbox Code Playgroud)
小智 17
安装此更新将解决此问题:
https://www.microsoft.com/en-us/download/details.aspx?id=26767
TL;DR 由于原始下载已不复存在,以下是我在戴尔论坛上找到的内容:
独立软件包:Microsoft 更新目录 - KB4457144
我在Win7 上有完全相同的错误消息(除了目录),并且已经存在较新的 VC++ redist。
该软件包包含我们想要的 KB2533623。 KB4457144 的详细信息:2018 年 9 月 11 日—KB4457144(月度汇总)
安装并重新启动后,dotnet new console通过没有错误。
戴尔论坛来源:Microsoft Windows 7 Update KB2533623 需要安装戴尔更新包 (DUP)
我遇到了同样的错误,我检查了我的 Web APIProgram.cs类,发现:.UseIISIntegration()丢失了。我添加了它,问题就解决了。
public class Program
{
public static void Main(string[] args)
{
CreateWebHostBuilder(args).Build().Run();
}
public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
WebHost.CreateDefaultBuilder(args).UseStartup<Startup>().UseIISIntegration();
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
6949 次 |
| 最近记录: |