2013-06-04 44 views
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' 

任何想法?

回答

1

我需要有與單聲道生成的exe文件相同的文件夾中的servicestack dll。

相關問題