我有以下代码:
OracleConnection conn = new OracleConnection();
conn.ConnectionString = test;
conn.Open();
当我运行它时,出现以下错误:
Could not load file or assembly 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The system cannot find the file specified.
到底为什么要加载System.Configuration.ConfigurationManger?
最佳答案
其他人也在讨论 .NET 核心和另一个库的类似问题,请参见此处:https://github.com/pusher-community/pusher-websocket-dotnet/issues/34
我会尝试添加对这个其他 Microsoft 程序集的引用,或者按照他们的建议使用 Nuget 获取它,然后我会在编译时和运行时再次测试代码。
关于c# - 连接到 oracle .net 核心,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51823426/