la-yumba / functional-csharp-code

Code samples for Functional Programming in C#

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unpon fresh clone, the solution does not build

gentledepp opened this issue · comments

Problem

I just cloned the repository and tried to build.
VS 2019 gives me the following error:
image

Running dotnet restore then reveals the real issue (sorry - German)
image

The index for the source "https://dotnet.myget.org/F/dotnet-core/api/v3/index.json" cannot be loaded - the SSL connection could not be established. It seems the remote certificate is invalid.

Solution

This can easily be fixed by running
dotnet restore --ignore-failed-sources

Thereafter the build succeeds.

You may still want to

  1. either fix this or (what do you need the myget repo for?)
  2. inform new users of this repo by providing a hint in the readme.md

What do you prefer?

I think this issue is not specific to my repo, but has to do with the configuration of your system vs the .NET version required.
Just so you know, there is a new version of the repo being developed along with the 2nd Edition of the book; it targets .NET 6: https://github.com/la-yumba/functional-csharp-code-2