Dotnet running error on Mac

Asked

Viewed 84 times

2

Good evening, I did the installation of . Net Core as per instructions: https://www.microsoft.com/net/core#macos

I created the project directory and when I will run (via terminal), as per command:

dotnet new

I get the error below:

Unhandled Exception: System.Typeinitializationexception: The type initializer for 'Crypto' threw an Exception. ---> System.Typeinitializationexception: The type initializer for 'Cryptoinitializer' threw an Exception. ---> System.Dllnotfoundexception: Unable to load DLL 'System.Security.Cryptography.Native': The specified module could not be found. (Exception from HRESULT: 0x8007007E) at Interop.CryptoInitializer.Ensureopensslinitialized() at Interop.CryptoInitializer.. cctor() --- End of Inner Exception stack trace --- at Interop.Crypto.. cctor() --- End of Inner Exception stack trace --- at Interop.Crypto.Getrandombytes(Byte* buf, Int32 num) at System.IO.Path.Getcryptorandombytes(Byte* bytes, Int32 byteCount) at System.IO.Path.Getrandomfilename() at Microsoft.DotNet.Internalabstractions.TemporaryDirectory.. ctor() at Microsoft.Extensions.EnvironmentAbstractions.DirectoryWrapper.CreateTemporaryDirectory() At Microsoft.DotNet.Configurer.NuGetPackagesArchiver.. ctor() at Microsoft.DotNet.Cli.Program.Configuraedotnetforfirsttimeuse(Inugetcachesentinel nugetCacheSentinel) at Microsoft.DotNet.Cli.Program.Processargs(String[] args, Itelemetry telemetryClient) at Microsoft.DotNet.Cli.Program.Main(String[] args) Abort Trap: 6

I’ve searched several forums, I’ve made several commands, but it still doesn’t work.

Could be something to do with Openssl?

Thank you in advance.

  • Only to eliminate doubts. You have executed the dotnet restore to download the dependencies?

  • Read posts from this page: https://github.com/dotnet/corefx/issues/9171

  • I’ve run yes @Felipedonda.

  • @Danielomine, I read and made the procedures informed, including downloaded the nuget, however, the error persists in the same way.

  • You installed the openssl through the brew?

  • Yes @Felipedonda.

Show 1 more comment
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.