1 cask "mono-mdk-for-visual-studio" do
3 sha256 "80b0dbfa59ba9ed76dbf1393998e6a2ed2d1ccc8f5850c7a46fbe31a2aea88d8"
5 url "https://download.mono-project.com/archive/#{version.major_minor_patch}/macos-10-universal/MonoFramework-MDK-#{version}.macos10.xamarin.universal.pkg"
7 desc "Open source implementation of Microsoft's .NET Framework"
8 homepage "https://www.mono-project.com/"
10 # https://learn.microsoft.com/en-us/visualstudio/releases/2022/what-happened-to-vs-for-mac
11 deprecate! date: "2024-09-01", because: :discontinued
13 conflicts_with cask: "mono-mdk",
16 pkg "MonoFramework-MDK-#{version}.macos10.xamarin.universal.pkg"
18 uninstall pkgutil: "com.xamarin.mono-*",
20 "/Library/Frameworks/Mono.framework/Versions/#{version.major_minor_patch}",
21 "/private/etc/paths.d/mono-commands",
24 "/Library/Frameworks/Mono.framework",
25 "/Library/Frameworks/Mono.framework/Versions",
28 zap delete: "~/Library/Preferences/mono-sgen64.plist",
31 "~/Library/Caches/com.xamarin.fontconfig",
35 This is a version specific for Visual Studio users. This cask should follow the specific Visual Studio channel/branch maintained by mono developers.
37 Installing #{token} removes mono and mono dependant formula binaries in
38 /usr/local/bin and adds #{token} to /private/etc/paths.d/
41 brew unlink {formula} && brew link {formula}
43 and/or remove /private/etc/paths.d/mono-commands