.NET Environment Setup in MacOS
Recently I've been assigned a task in which I will need to develop software using Microsoft .NET Framework. The only problem is that currently I am using a MacBook Pro so here is what I did to get from 0 to hero.
brew install --cask dotnet-sdk
Your console output may look similar to this:
==> Auto-updating Homebrew...
Adjust how often this is run with HOMEBREW_AUTO_UPDATE_SECS or disable with
HOMEBREW_NO_AUTO_UPDATE. Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
==> Auto-updated Homebrew!
Updated 3 taps (homebrew/services, homebrew/core and homebrew/cask).
==> New Formulae
action-docs fcft libmsquic pytest termscp
ansible-builder foot libspelling@0.2 python-freethreading tex-fmt
azqr hawkeye libtatsu rip2 toml2json
boring icu4c@74 localai rust-script vipsdisp
carapace icu4c@76 markdown-oxide sequoia-sq wasi-libc
clickhouse-sql-parser kanata minijinja-cli sf wasi-runtimes
decasify kubetail mkdocs-material sleek wasm-component-ld
dipc langgraph-cli node@22 surfer zizmor
distill-cli lbfgspp onnx tcl-tk@8 zsh-system-clipboard
==> New Casks
acronis-true-image-cleanup-tool font-faculty-glyphic lunatask
adlock font-greybeard mailbird
bobhelper font-mynaui-icons mailsteward
claude font-parkinsans morisawa-desktop-manager
cocoapacketanalyzer font-recursive-desktop neohtop
default-handler font-zpix singlebox
djuced github-copilot-for-xcode sketchup
dockside huggingchat unraid-usb-creator-next
follow huly viz
follow@alpha hyperconnect webkinz
follow@nightly jet-pilot whimsical
font-doto langgraph-studio yellowdot
font-eldur lets
You have 13 outdated formulae and 1 outdated cask installed.
==> Downloading https://download.visualstudio.microsoft.com/download/pr/35b0fb29-cadc-4083-aa26-6cecd2e7ffa1/1a9972a4
############################################################################################################## 100.0%
==> Installing Cask dotnet-sdk
==> Running installer for dotnet-sdk with sudo; the password may be necessary.
Password:
installer: Package name is Microsoft .NET SDK 8.0.403 (arm64)
installer: Installing at base path /
installer: The install was successful.
==> Linking Binary 'dotnet' to '/opt/homebrew/bin/dotnet'
🍺 dotnet-sdk was successfully installed!
That will take care of the SDK (Software Development Kit). I have Visual Studio Code already installed in my computer and I noticed five new extensions that were installed automatically:
After creating my first API project Visual Studio Code suggested me to install another extension:
I installed but not really used it since I am currently using the terminal more than VSCode but well, just reporting what happened.
As far as I have read we can either use Visual Studio Code for MacOS since Visual Studio for MacOS has been retired, as stated by Microsoft:
Visual Studio for Mac has been retired as of August 31, 2024 in accordance with Microsoft’s Modern Lifecycle Policy. Visual Studio for Mac is no longer supported. There will be no further servicing updates to address security issues or updated platforms from Apple. For the most secure, up-to-date experience, we recommend either Visual Studio (Windows) or moving to Visual Studio Code on the Mac.
You can read more about this here.
Another good option is Jet Brains Rider which is free for non-commercial use and can be downloaded for MacOS from here.
After downloading the .dmg
file we'll need to ope it and drag and drop the Rider.app
icon to Applications
:
Then it will start installing itself:
After opening you will need to accept license agreements, register, and configure it. Once all the burden is over you will be presented with this:
I recommend taking the tour to understand what can you do with this program. Other than that we are pretty much done with the setup.
Sources: