Dll 无法从Mono中的程序集加载类型

Dll 无法从Mono中的程序集加载类型,dll,mono,Dll,Mono,我正在使用Mono运行一个预构建的应用程序,它与同一目录中的DLL一起运行(mysql.data.DLL)。使用Mono运行应用程序时,出现以下错误: Could not load type 'Snowlight.Storage.SqlDatabaseClient' from assembly 'Snowlight, Version=0.1.0.35857, Culture=neutral, PublicKeyToken=null'. at System.Collections.Generi

我正在使用Mono运行一个预构建的应用程序,它与同一目录中的DLL一起运行(
mysql.data.DLL
)。使用Mono运行应用程序时,出现以下错误:

Could not load type 'Snowlight.Storage.SqlDatabaseClient' from assembly 'Snowlight, Version=0.1.0.35857, Culture=neutral, PublicKeyToken=null'.
  at System.Collections.Generic.Dictionary`2[System.Int32,Snowlight.Storage.SqlDatabaseClient].Init (Int32 capacity, IEqualityComparer`1 hcp) [0x00000] in <filename unknown>:0
  at System.Collections.Generic.Dictionary`2[System.Int32,Snowlight.Storage.SqlDatabaseClient]..ctor () [0x00000] in <filename unknown>:0
  at Snowlight.Storage.SqlDatabaseManager.Initialize () [0x00000] in <filename unknown>:0
  at Snowlight.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0
无法从程序集“Snowlight,版本=0.1.0.35857,区域性=中性,PublicKeyToken=null”加载类型“Snowlight.Storage.SqlDatabaseClient”。
位于System.Collections.Generic.Dictionary`2[System.Int32,Snowlight.Storage.SqlDatabaseClient].Init(Int32容量,IEqualityComparer`1 hcp)[0x00000]中:0
位于System.Collections.Generic.Dictionary`2[System.Int32,Snowlight.Storage.SqlDatabaseClient]…ctor()[0x00000]中:0
在:0中的Snowlight.Storage.SqlDatabaseManager.Initialize()[0x00000]处
在:0中的Snowlight.Program.Main(System.String[]args)[0x00000]处

根据
判断,我假设发生这种情况是因为找不到它所需的DLL,那么我如何让应用程序识别并使用它呢?

尝试从终端像这样运行它:

export MONO_LOG_LEVEL=debug
export MONO_LOG_MASK=asm
mono --debug yourapp.exe
现在,每个程序集查找都将打印到终端,因此您将能够找到在哪里查找的内容