Hey! Hope you're doing well.
So, I finally got around to setting up the .NET SDK on my Mac—you know, the official toolchain for building .NET apps cross-platform. I've been wanting to play with ASP.NET Core for a backend project, and the promise of writing C# on macOS sounded great.
Install was smooth—downloaded the installer from the official site, ran it, everything seemed fine. Opened Terminal, typed dotnet --version to verify… and got zsh: command not found. The SDK was installed, but the dotnet command wasn't in my PATH.
The Wrong Turn I Took First
My first thought: "Maybe the installer didn't add it to PATH." I checked /usr/local/share/dotnet/—the dotnet binary was there. So I manually added export PATH=$PATH:/usr/local/share/dotnet to my .zshrc, sourced it, and dotnet --version worked. Great, problem solved… or so I thought.
Then I tried creating a new project with dotnet new console. It created the project, but when I ran dotnet run, I got a cryptic err
Discussion
Jump in and comment!
Get the ball rolling with your comment!