core icon indicating copy to clipboard operation
core copied to clipboard

Running dotnet shows the usage instructions and then returns error code 129

Open mmulji-ic opened this issue 3 years ago • 7 comments

Problem encountered on https://dotnet.microsoft.com/en-us/learn/languages/fsharp-hello-world-tutorial/install Operating System: macos

Provide details about the problem you're experiencing. Include your operating system version, exact error message, code sample, and anything else that is relevant.

Using an M1 Mac, simply running dotnet shows the usage instructions and then returns error code 129

``shell 👉 dotnet

Usage: dotnet [options] Usage: dotnet [path-to-application]

Options: -h|--help Display help. --info Display .NET information. --list-sdks Display the installed SDKs. --list-runtimes Display the installed runtimes.

path-to-application: The path to an application .dll file to execute.

👹 129
👉 echo $? 129 ``

mmulji-ic avatar Apr 22 '22 13:04 mmulji-ic

Did you install the Arm64 version of the SDK?

mairaw avatar Apr 22 '22 22:04 mairaw

Yes I did, just for future reference, how do I check @mairaw ?

👉 dotnet --list-sdks 6.0.101 [/usr/local/share/dotnet/sdk] 6.0.202 [/usr/local/share/dotnet/sdk]

👉 dotnet --list-runtimes Microsoft.AspNetCore.App 6.0.1 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 6.0.4 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 6.0.1 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.4 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]

mmulji-ic avatar Apr 26 '22 09:04 mmulji-ic

Thanks for confirming that. This doc has some information about how to check: https://docs.microsoft.com/en-us/dotnet/core/install/how-to-detect-installed-versions?pivots=os-macos

mairaw avatar Apr 26 '22 17:04 mairaw

Thanks @mairaw , was looking to see if there was something specific about identifying an ARM installation in those instructions, but doesn't seem to be.

mmulji-ic avatar Apr 27 '22 10:04 mmulji-ic

you can use the following command to check which architecture based SDK is installed on your machine. Replace the {VersionNumber} with your dotnet version.

$ cat /usr/local/share/dotnet/sdk/{VersionNumber}/.version

it should be like that on your environment; $ cat /usr/local/share/dotnet/sdk/6.0.202/.version

It prints the version number and the arch. info as well. like osx-x64 or osx-arm64 etc.

emresindir avatar Jul 07 '22 23:07 emresindir

43f9b184817e4f48ba091d068a4d517c86daafd3 6.0.301 osx-arm64

mmulji-ic avatar Jul 21 '22 15:07 mmulji-ic

Have you ever tried to build and/or run any application in your environment? If you haven't yet, you can create a new project by the following command; dotnet new console

after creation is completed, you can run the app by the following command. dotnet run

Please check out the result and share the output. It should be printed "Hello World"

emresindir avatar Jul 21 '22 17:07 emresindir

Are you still having issues @mmulji-ic? I realize this is quite old.

mairaw avatar Feb 26 '24 02:02 mairaw

This issue is stale because there has been no response to a request for more information for 7 days.

github-actions[bot] avatar Mar 04 '24 03:03 github-actions[bot]

This issue was closed because there was no response to a request for more information for 10 days.

github-actions[bot] avatar Mar 07 '24 04:03 github-actions[bot]