1
我正试图让我在C#中编写的程序工作于单声道。将ServiceStack DLL嵌入单声道可执行文件
该项目是在这里 - https://github.com/micahasmith/cstatic
我的构建脚本为“mono让”它建立像so--
dmcs -r:../packages/ServiceStack.Text.3.9.48/lib/net35/ServiceStack.Text.dll \
-target:exe -out:cstatic.exe \
`find . -name "*.cs"`
即建立精细,使cstatic.exe。然而,当我去,像这样
mono cstatic.exe
我得到以下运行它:
Missing method ToJson in assembly /Users/micahasmith/Downloads/cstatic/CStatic/CStatic/cstatic.exe, type ServiceStack.Text.StringExtensions
Unhandled Exception:
System.IO.FileNotFoundException: Could not load file or assembly 'ServiceStack.Text, Version=3.9.45.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
File name: 'ServiceStack.Text, Version=3.9.45.0, Culture=neutral, PublicKeyToken=null'
[ERROR] FATAL UNHANDLED EXCEPTION: System.IO.FileNotFoundException: Could not load file or assembly 'ServiceStack.Text, Version=3.9.45.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
File name: 'ServiceStack.Text, Version=3.9.45.0, Culture=neutral, PublicKeyToken=null'
任何想法?