error : NETSDK1061: The project was restored using Microsoft.NETCore.App version 2.0.5, but with current settings, version 2.1.1 would be used instead.
I had
```
further down the file. Once I removed this and did a clean, the project built successfully.