Check dotnet version mac

Below is the command to check dotnet version installed on MAC, you can run the command in the terminal:

dotnet  --info

The out put will be like this:

  Host:
  Version:      6.0.7
  Architecture: arm64
  Commit:       0ec02c8c96

ABove, 6.0.7 is the dotnet version installed on the machine.