-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Closed
dotnet/sdk
#18911Milestone
Description
Running dotnet sdk check throws this exception using dotnet preview4.
➜ dotnet sdk check
System.DllNotFoundException: Unable to load shared library 'hostfxr' or one of its dependencies. In order to help diagnose loading problems, consider setting the DYLD_PRINT_LIBRARIES environment variable: dlopen(libhostfxr, 1): image not found
at Microsoft.DotNet.NativeWrapper.Interop.hostfxr_get_dotnet_environment_info(String dotnet_root, IntPtr reserved, hostfxr_get_dotnet_environment_info_result_fn result, IntPtr result_context)
at Microsoft.DotNet.NativeWrapper.NETBundlesNativeWrapper.GetDotnetEnvironmentInfo(String dotnetExeDirectory) in Microsoft.DotNet.NativeWrapper.dll:token 0x600000f+0x20
at Microsoft.DotNet.Tools.Sdk.Check.SdkCheckCommand.Execute() in dotnet.dll:token 0x60004e0+0x13
at Microsoft.DotNet.Cli.DotNetTopLevelCommandBase.RunCommand(String[] args) in dotnet.dll:token 0x60008af+0x5e
at Microsoft.DotNet.Tools.Sdk.SdkCommand.Run(String[] args) in dotnet.dll:token 0x60004ce+0x6
at Microsoft.DotNet.Cli.Program.ProcessArgs(String[] args, TimeSpan startupTime, ITelemetry telemetryClient) in dotnet.dll:token 0x6000918+0x2e8
at Microsoft.DotNet.Cli.Program.Main(String[] args) in dotnet.dll:token 0x6000916+0x6fHere are the results of my call to dotnet --list-sdks
➜ dotnet --list-sdks
2.1.202 [/Users/khalidabuhakmeh/.dotnet/sdk]
2.1.816 [/Users/khalidabuhakmeh/.dotnet/sdk]
3.0.103 [/Users/khalidabuhakmeh/.dotnet/sdk]
3.1.409 [/Users/khalidabuhakmeh/.dotnet/sdk]
5.0.203 [/Users/khalidabuhakmeh/.dotnet/sdk]
6.0.100-preview.3.21202.5 [/Users/khalidabuhakmeh/.dotnet/sdk]
6.0.100-preview.4.21255.9 [/Users/khalidabuhakmeh/.dotnet/sdk]TheCodeTraveler and tillig