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'
任何想法?