visual-studio-code - 使用此错误构建 ASP.NET 项目:Microsoft.AspNetCore.Cryptography.Internal.dll 中的“System.DllNotFoundException”
问题描述
唯一引用 Microsoft.AspNetCore.Cryptography.Internal.dll 的包在这里:
这些错误在构建/运行时间歇性地出现在控制台中 - 但仅在 Visual Studio Code for Mac 中,而不是在 Visual Studio for Mac 或 Rider 中:
-------------------------------------------------------------------
You may only use the Microsoft .NET Core Debugger (vsdbg) with
Visual Studio Code, Visual Studio or Visual Studio for Mac software
to help you develop and test your applications.
-------------------------------------------------------------------
[01:07:28 INF] Application Starting Up
Exception thrown: 'System.Net.Sockets.SocketException' in System.Private.CoreLib.dll
Exception thrown: 'System.Net.Http.HttpRequestException' in System.Net.Http.dll
Exception thrown: 'System.Net.Http.HttpRequestException' in System.Private.CoreLib.dll
Exception thrown: 'System.Net.Http.HttpRequestException' in System.Private.CoreLib.dll
Exception thrown: 'System.Net.Http.HttpRequestException' in System.Private.CoreLib.dll
Exception thrown: 'System.Net.Http.HttpRequestException' in System.Net.Http.dll
Exception thrown: 'System.Net.Http.HttpRequestException' in System.Private.CoreLib.dll
Exception thrown: 'System.Net.Http.HttpRequestException' in System.Private.CoreLib.dll
Exception thrown: 'System.Net.Http.HttpRequestException' in System.Private.CoreLib.dll
Exception thrown: 'System.Net.Http.HttpRequestException' in System.Net.Http.dll
Exception thrown: 'System.Net.Http.HttpRequestException' in System.Private.CoreLib.dll
Exception thrown: 'System.Net.Http.HttpRequestException' in System.Private.CoreLib.dll
Exception thrown: 'System.DllNotFoundException' in Microsoft.AspNetCore.Cryptography.Internal.dll
Exception thrown: 'System.Net.Sockets.SocketException' in System.Private.CoreLib.dll
我可以从 Visual Studio for Mac 或 Rider 运行该项目,但在使用 Visual Studio Code for Mac 时出现此错误。难住了。我什至卸载了 .NET Core 运行时并重新安装了它们(最新版本的 .NET Core 2 和 3)。
有任何想法吗?
解决方案
推荐阅读
- c - 在重新分配之后组织指针数组
- javascript - PHP:如何获取单选按钮的值然后在 SQL statemet 中使用它
- c++ - 使用 map 为类创建迭代器
- c# - 是否可以使用模拟对象作为另一种模拟方法的输入?
- ceph - 从失败的 Ceph 集群中恢复 - 非活动 PG(关闭)
- batch-file - 如何以编程方式运行具有管理员权限的批处理脚本?
- r - RODBC oracle 架构与安装的双客户端不匹配
- java - 如何使用 Selenium Java 使用 Krypton 捕获屏幕截图
- google-apps-script - getActiveRange 不返回当前选择
- python - 从命令行运行 python 模块