C# 如何为基于Mono的应用程序创建自制公式?

C# 如何为基于Mono的应用程序创建自制公式?,c#,ruby,mono,homebrew,C#,Ruby,Mono,Homebrew,我正在尝试为mono控制台应用程序创建一个自制公式 这是我目前的公式: class Fchan < Formula desc "4chan image downloader" homepage "https://github.com/gabrielgio/FChan.Downloader" url "https://github.com/gabrielgio/FChan.Downloader/releases/download/v0.1.2/fchan0.1.2.tar.gz"

我正在尝试为mono控制台应用程序创建一个自制公式

这是我目前的公式:

class Fchan < Formula
  desc "4chan image downloader"
  homepage "https://github.com/gabrielgio/FChan.Downloader"
  url "https://github.com/gabrielgio/FChan.Downloader/releases/download/v0.1.2/fchan0.1.2.tar.gz"
  version "0.1.2"
  sha256 "00f46139b6ba50dbbf178b123ab8f54e225e645eb9aebbb5d22031f8ef3cba3e"

  def install
    system "xbuild", "/p:Configuration=Release", "./FChan.sln"
    system "cd", "./FChan.Downloader/bin/Release/"
    system "mkbundle", "-o", "fchand", "FChan.Downloader.exe", "Newtonsoft.Json.dll", "FChan.Library.dll", "--deps"
  end

  test do
    system "false"
  end
end

有人能告诉我如何为mono应用程序创建合适的自制配方吗?

由于您的配方依赖于mono,因此您需要:

==> Downloading https://github.com/gabrielgio/FChan.Downloader/releases/download/v0.1.2/fchan0.1.2.tar.gz
Already downloaded: /Library/Caches/Homebrew/fchan-0.1.2.tar.gz
==> Verifying fchan-0.1.2.tar.gz checksum
tar xf /Library/Caches/Homebrew/fchan-0.1.2.tar.gz
==> xbuild /p:Configuration=Release ./FChan.sln
Failed to execute: xbuild
depends_on "mono"