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 restoreto download the dependencies?– Felipe Donda
Read posts from this page: https://github.com/dotnet/corefx/issues/9171
– Daniel Omine
I’ve run yes @Felipedonda.
– Rafael Heiden
@Danielomine, I read and made the procedures informed, including downloaded the nuget, however, the error persists in the same way.
– Rafael Heiden
You installed the
opensslthrough thebrew?– Felipe Donda
Yes @Felipedonda.
– Rafael Heiden