dotnet restore fail on newly created project on Mac
See original GitHub issueSteps to reproduce
mkdir dotnettest cd dotnettest dotnet new dotnet restore
Expected behavior
restore successfully
Actual behavior
log : Restoring packages for /Users/apple/Desktop/dotnettest1/project.json… error: Unable to load the service index for source https://dotnet.myget.org/F/dotnet-core/api/v3/index.json. error: The type initializer for ‘Crypto’ threw an exception. error: The type initializer for ‘CryptoInitializer’ threw an exception. error: Unable to load DLL ‘System.Security.Cryptography.Native’: The specified module could not be found. error: (Exception from HRESULT: 0x8007007E)
Environment data
dotnet --info
output:
.NET Command Line Tools (1.0.0-preview1-preview1-002697)
Product Information: Version: 1.0.0-preview1-preview1-002697 Commit Sha: 08b3ad9e88
Runtime Environment: OS Name: Mac OS X OS Version: 10.11 OS Platform: Darwin RID: osx.10.11-x64
Issue Analytics
- State:
- Created 7 years ago
- Comments:14 (8 by maintainers)
@XiaoFaye Can you install openssl and give it a try - https://github.com/dotnet/coreclr/blob/master/Documentation/building/osx-instructions.md#openssl ?
Apple has deprecated OpenSSL in OS X (they have their own libraries to accomplish similar things) and are no longer updating the legacy version that ships in the box. This version is no longer supported by the OpenSSL maintainers, and so we made the decision to not link against it, but instead require a newer version that has to be installed manually.
Yes. We are looking to make this better, but I do not think we will fix this before RTM.