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.3.0/nuget.exe" # make sure libexec.install below matches case sha256 "96a1dc5ad572716b2ab345a6830365cf0103661ec906b0e78fd04a064a7bb730" 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