homebrew-core/Formula/nuget.rb
Caleb Xu 8f885f95fe nuget 5.4.0
Closes #48704.

Signed-off-by: Rui Chen <chenrui333@gmail.com>
2020-01-07 22:29:46 -05:00

22 lines
658 B
Ruby

class Nuget < Formula
desc "Package manager for Microsoft development platform including .NET"
homepage "https://www.nuget.org/"
url "https://dist.nuget.org/win-x86-commandline/v5.4.0/nuget.exe" # make sure libexec.install below matches case
sha256 "880f8d306a65932b11f7edd7768b57d20e78fc618b21d785b303da27facc9a70"
bottle :unneeded
depends_on "mono"
def install
libexec.install "nuget.exe" => "nuget.exe"
(bin/"nuget").write <<~EOS
#!/bin/bash
mono #{libexec}/nuget.exe "$@"
EOS
end
test do
assert_match "NuGet.Protocol.Core.v3", shell_output("#{bin}/nuget list packageid:NuGet.Protocol.Core.v3")
end
end