2

.NET Core 및 VSCode를 사용하여 Mac에서 웹 응용 프로그램 기본 [회원 자격없이]을 만들려고합니다.MacOS에서 패키지를 복원 할 수 없습니다. Sierra

내 응용 프로그램 폴더에 패키지를 복원하기 위해 노력하고있어하지만 난이 오류가 얻을

yo aspnet 

명령을 사용하여 새 프로젝트를 생성 한 후 :

log : Restoring packages for /Users/<user_name>/<app_name>/project.json... 
error: Unable to load the service index for source https://api.nuget.org/v3/index.json. 
error: The type initializer for 'System.Net.Http.CurlHandler' threw an exception. 
error: The type initializer for 'Http' threw an exception. 
error: The type initializer for 'HttpInitializer' threw an exception. 
error: The type initializer for 'CryptoInitializer' threw an exception. 
error: Unable to load DLL 'System.Security.Cryptography.Native.OpenSsl': The specified module could not be found. 
error: (Exception from HRESULT: 0x8007007E) 
Done: 1. 

(나는 이미 모든 종속성을 설치 한을 및 Mac에서 ASP.NET을 실행하는 도구)

+0

프로젝트를 삭제하고 테스트를 위해 프로젝트를 생성하기 위해'dotnet new'를 먼저 사용하십시오. 오래된 템플릿은 대개 오류를 발생시킵니다. 이러한 질문에'dotnet --version'의 출력을 포함 시켜서 사람들이 사용중인 SDK의 버전을 알 수 있도록해야합니다. –

+0

도구를 설치했다고 말했습니까?하지만 확실하게 런타임을 설치 했습니까? 'DLL을로드 할 수 없습니다'System.Security.Cryptography.Native.OpenSsl ': 지정한 모듈을 찾을 수 없습니다. NET 코어 런타임이 올바르게 설치되지 않은 것처럼 들립니다. – Tseng

+1

[.NET 핵심 다운로드 페이지] (https://www.microsoft.com/net/core#macos) OpenSSL을 설치하고 심볼릭 링크를 만드는 방법은 무엇입니까? –

답변

3

https://www.microsoft.com/net/core#macos의 자습서에서 설명한대로 OpenSSL을 설치하지 않았 으면 아래 명령을 실행하여 iss를 해결해야합니다. ue.

brew update; brew install openssl; mkdir -p /usr/local/lib; ln -s /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib /usr/local/lib/; ln -s /usr/local/opt/openssl/lib/libssl.1.0.0.dylib /usr/local/lib/; 

내 컴퓨터에서 OpenSSL을 제거하면 같은 오류가 발생합니다.

관련 문제