question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

dotnet restore fail on newly created project on Mac

See original GitHub issue

Steps 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:closed
  • Created 7 years ago
  • Comments:14 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
Sridhar-MScommented, May 8, 2016
1reaction
ellismgcommented, May 8, 2016

But one thing I don’t understand, my OSX has updated to the latest version, how come the open ssl is out of date?

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.

is this means any OSX machines need to take this action before running dotnet core

Yes. We are looking to make this better, but I do not think we will fix this before RTM.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Is dotnet restore broken on macos?
This has recently just started happening. dotnet --version 5.0.104. macOS Big Sur version 11.6. when I run dotnet restore Determining projects ...
Read more >
dotnet restore command - .NET CLI
Learn how to restore dependencies and project-specific tools with the dotnet restore command.
Read more >
Cannot build image for linux/amd64 on M1 Mac - r/dotnet
Cannot build image for linux/amd64 on M1 Mac - dotnet restore fails. Hi,. I am trying to build a Docker image for linux/amd64...
Read more >
Dotnet restore vs nuget restore. Share. In my code repo, there
A flag for dotnet restore that exits immediately with non-zero code if the any package fails to restore, e. We tried upgrading the...
Read more >
Dotnet restore never completes on M1 Mac when targeting ...
I have an M1 macbook running Docker Desktop 4.14.1. I have created a dot net asp.net website project. When I build my image...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found