Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

1.7K
Visualizações
dotnet command is not found in my Mac m1 terminal

I have downloaded .net5 from official website, but dotnet command isn't recognised by my terminal.

Here's what I have found after some research-

  1. my dotnet folder is present in /usr/local/share/dotnet

  2. I used this command but it didn't work sudo ln -s /usr/local/share/dotnet /usr/local/bin/dotnet

    1. now whenever I enter dotnet in terminal it shows zsh: permission denied: dotnet
  3. I also tried this command and it didn't work sudo ln -s /usr/local/share/dotnet /usr/bin/dotnet

    1. now whenever I enter dotnet in terminal it shows zsh: command not found: dotnet
  4. when I open my .cs file in vscode it shows error as The .NET Core SDK cannot be located. .NET Core debugging will not be enabled. Make sure the .NET Core SDK is installed and is on the path.

here's a screenshot for reference enter image description here

What should I do :(

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

Had the same(ish) issue after installing .NET 6 broke my current .NET 5 installation.

I fixed it by:

1. removing all files of the current dotnet installation.

This is done by deleting the dotnet folder located in /usr/local/share/

(Navigate there using Finders 'go to' feature, or just delete it using the terminal)

2. reinstalling the dotnet sdk

download from https://dotnet.microsoft.com

3. adding a symlink to the current dotnet executable.

sudo ln -s /usr/local/share/dotnet/x64/dotnet /usr/local/bin/

ℹ Note that the path to the dotnet executable is different from what you tried. Seems like a subfolder was added (/x64) at some point.

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda