首页 > 解决方案 > 无法使用 Mono 在 CentOS 7 上构建 Calamari

问题描述

我正在尝试将 Linux 机器设置为 Octopus SSH 部署目标。如八达通指南中所述,我安装了所需的软件。在构建Calamari包时,我收到以下错误。

(2459,59): error CS0012: The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'.

过去似乎有很多人在 windows/linux 环境中遇到过这个问题。我尝试了这些论坛中提供的建议,但对我没有任何帮助。

如果有人能对这个问题有所了解,那将非常有帮助。

我正在使用的配置:

Linux 发行版:CentOS 7.3

dotnet SDK:2.2.300

单完整:5.14.0.177

蟒蛇:3.6.3

链接到 Calamari 源: https ://github.com/OctopusDeploy/Calamari

章鱼指南链接: https ://octopus.com/docs/infrastructure/deployment-targets/linux/requirements#mono-calamari

标签: .netmonooctopus-deploy

解决方案


我向 Octopus 开发团队提出了同样的问题,并得到了答复。

From: Michael_Richardson

Hi,

You shouldn’t need to compile Calamari yourself. Calamari is bundled with the Octopus server and is automatically pushed to the deployment targets.

When configuring the SSH target in Octopus, you are provided with the choice of two flavours of Calamari, self-contained or Mono. In general, we recommend using the self-contained option as it means Mono does not need to be installed.

I hope that helps. Please follow up if I’ve misunderstood :slight_smile:

Linux 代理的唯一要求如下。

1)Python 3

2) 点

3) 单声道


推荐阅读