【发布时间】:2013-03-26 16:19:31
【问题描述】:
我正在尝试在我的 ubuntu 服务器上托管一个 nuget 提要,该服务器从源代码安装了 mono 3.07。我正在使用nuget.org 中描述的方法。项目依赖System.ServiceModel.Activation,但是在mono下找不到。
根据mono documentation,该程序集已实现。我是否需要安装其他软件包才能获得它?
更新
原来我读错了。 Mono 目前不支持 DataServices 和 nor does it plan to。经过一番摸索后,我发现最好的解决方法是host a network file share on the Linux server(我自己的博文)。
【问题讨论】:
-
您是否添加了对
System.ServiceModel的项目引用? -
是的,还有 System.ServiceModel.Activation。它构建在visual studio下的windows中。
-
你添加了 Copy Local = true 吗?
-
否 - 但我首先使用 xbuild 构建它以检查它是否能够正常工作,而 xbuild 找不到该程序集。它也不在我的 GAC 中。
-
如果在 Windows 中它存在于 GAC 中,那么可能在 Mono 的“make install”阶段存在错误,无法通过 gacutil 安装程序集,或者根本没有对 gacutil 的调用;我建议您对其进行调查并提出拉取请求