DEV Community

Jay
Jay

Posted on

"Hello World" dotnet core in Mac OSX

Setting up Development Environment

  • Install brew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Enter fullscreen mode Exit fullscreen mode
  • Install dotnet-core-sdk and version 3.1.411
brew tap isen-ng/dotnet-sdk-versions
brew install --cask dotnet-sdk3-1-400
Enter fullscreen mode Exit fullscreen mode
  • Check the dotnet version
dotnet --version
Enter fullscreen mode Exit fullscreen mode
  • Optional install Visual Studio Code as your editor
brew install --cask visual-studio-code
Enter fullscreen mode Exit fullscreen mode

Create Hello World Console application

dotnet new console -o hello-world
cd hello-world
dotnet run
Enter fullscreen mode Exit fullscreen mode

Discussion (0)