2013-06-04 1 views
1

저는 C#에서 w/Mono로 작업하는 프로그램을 작성하려고합니다. ServiceStack dll을 Mono로 임베드 할 수 있음

프로젝트

은 여기 - https://github.com/micahasmith/cstatic

내가 그것을 잘 구축하고 cstatic.exe하게 그러니까 ...

dmcs -r:../packages/ServiceStack.Text.3.9.48/lib/net35/ServiceStack.Text.dll \ 
-target:exe -out:cstatic.exe \ 
`find . -name "*.cs"` 

처럼 설정 "확인 된 모노"로 빌드 스크립트가 있습니다.

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' 

모든 아이디어 : 그러나, 나는 다음과 같은 얻을 수 있도록

mono cstatic.exe처럼 실행으로 이동?

답변

1

서비스 생성 dll이 모노 생성 된 exe 파일과 같은 폴더에 있어야했습니다.

관련 문제